Custom EMBED or OBJECT Tag

Applies to: VisualSP
Print Friendly, PDF & Email

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, ActiveX, PDF, and Flash) that are handled by browser plugins. For example, if you wanted to embed a Quicktime movie into your Help item, the code would use an OBJECT tag and would look like this:

<object data="flashmovie.swf" width="600" height="800" type="application/x-shockwave-flash"> Please install the Shockwave plugin to watch this movie. </object>

The data attribute specifies the URL of the data in the object. You can also use type, which tells the browser which plugin to load to display the content. Any text that you include between the <object> and </object> tags will be displayed if the plugin is not available.

The <object> tag has the following attributes:

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
  • Internet Explorer
  • Firefox
  • Opera
  • Safari

Learn more.

Updated on September 11, 2019

Related Articles