Custom EMBED or OBJECT Tag

Applies to: VisualSP
Custom EMBED or OBJECT Tag is one of the Media Types available in the Help item editor window. This support article will describe how to use this media type in a Help item.

Use this media type when you would like to pull in external multimedia content (like audio, video, Java applets, and PDF) that are handled by browser plugins. For example, if you wanted to embed a WEBM movie into your Help item, the code would use an OBJECT tag and would look like this:

<object height="250" width="500" data="https://www.shutterstock.com/shutterstock/videos/3552321153/preview/stock-footage-online-services-visualization-in-a-diverse-modern-office-environment-top-down-view-on-a-futuristic.webm"></object>

The <object> tag has the following attributes:

ATTRIBUTE VALUE DESCRIPTION
data URL It specifies the URL of data in the object.
type media_type It specifies the media type of data specified in the data attribute.
typemustmatch boolean It indicates that the resource should be embedded only if the value of the type attribute matches with the type of the resource provided on the data attribute.
align left, right, top, bottom It defines the alignment of the objects.
border pixels It specifies the border around the object.
height pixels It specifies the height of the object.
hspace pixels It specifies the whitespace on the left and right side of the object.
vspace pixels It specifies the whitespace on the top and bottom of the object.
height pixels It specifies the height of the object.
width pixels It specifies the width of the object.
name name It specifies the name for an object.
form form_id It specifies the form id to which the object element belongs to.
Supported Browsers: The <object> tag is supported by the following browsers:
  • Google Chrome
  • Firefox
  • Opera
Learn more.

Embedding Videos from Microsoft Stream

Custom EMBED or OBJECT tag supports autoplay of Stream videos on certain pages, however it is not guaranteed due to current security policies and might change in the future as browser and site security policies change.

When embedding a video from Stream, "Show Title or Responsive" must be set to OFF. Otherwise, video will not be displayed.

Embedding a PDF

Embedding a PDF using a simple embed code is not supported as it poses a security risk. This is also true for embedding other kinds of script tags, as any JavaScript is forbidden.

PDF can be embedded by using an iFrame:

<iframe src="url_with_path_to_pdf"></iframe>
Updated on June 12, 2025

Related Articles