HTML < object > Tag - Learn About Website | DaddyFile

0

HTML <object> Tag


Example

How to use the <object> element to embed a Flash file:


<object width="400" height="400" data="helloworld.swf"></object>

Definition and Usage

The <object> tag defines an embedded object within an HTML document. Use this element to embed multimedia (like audio, video, Java applets, ActiveX, PDF, and Flash) in your web pages.
You can also use the <object> tag to embed another webpage into your HTML document.
You can use the <param> tag to pass parameters to plugins that have been embedded with the <object> tag.

Tips and Notes

Note: An <object> element must appear inside the <body> element. The text between the <object> and </object> is an alternate text, for browsers that do not support this tag.
Tip: For images use the <img> tag instead of the <object> tag.
Tip: At least one of the "data" or "type" attribute MUST be defined.

Differences Between HTML 4.01 and HTML5

Some HTML 4.01 attributes are not supported in HTML5.
The "form" attribute is new in HTML5.
In HTML5, objects can be used and submitted in forms.
In HTML5, objects can no longer appear inside the <head> element of a document.

Post a Comment

 
Top