<object> tag in HTML
The <object> tag is used to represents an external resource to be handled by a plugin for example use <object> element to embed multimedia like (audio, video, Java applets, ActiveX, PDF, and Flash) in HTML web pages.
Important Description
- Use <object> tag to embed another webpage into your HTML document.
- Open and close tag required of <object>.
Example of <object> tag
Example Result Look Like
<object> Tag Browser Support
Element |
Chrome |
Edge |
Firefox |
Safari |
Opera |
<object> |
Yes |
Yes |
Yes |
Yes |
Yes |
Global Attributes
Event Attributes
Attributes
The listed attributes are not supported in HTML5 including "align", "archive", "border", "classid", "codebase", "codetype", "declare", "hspace", "standby", and "vspace" attributes.
Attribute |
Value |
Description |
data |
URL |
Defines which kind of bullet point will be used |
Form |
form_id |
Defines one or more forms the object belongs to |
height |
pixels |
Defines the height of the object |
name |
name |
Defines the name of the object |
type |
media_type |
Defines the media type of data specified in the data attribute |
usemap |
#mapname |
Defines the name of a client-side image map to be used with the object |
width |
pixels |
Defines the width of the object |