C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML
HTML <object> tagHTML <object> tag is used to embed multimedia files on webpage. The <object> tag can include multimedia files such as video, audio, image, PDF, Java Applets, or another page on your page. HTML <param> tag also used with <object> tag to pass parameters to plugin which has been included with <object> tag. If you insert text between the <object> and </object> tags, then it will only be displayed if the browser does not support the <object> tag. Syntax<object data="" type=""></object> Following are some specifications about the HTML <object > tag
ExampleEmbedding a Video: <!DOCTYPE html> <html> <head> <title>Obejct Tag</title> </head> <body> <h2>Example of Object tag</h2> <object height="250" width="500" data="https://www.youtube.com/embed/O5hShUO6wxs"></object> </body> </html> Output: Embedding a gif image: <!DOCTYPE html> <html> <head> <title>Obejct Tag</title> </head> <body> <h2>Example of Object tag</h2> <object height="250" width="500" data="circle.gif">Sorry!,Your browser does not support</object> </body> </html> Output: Attribute:Tag-specific attributes:
Global attribute:The <object > tag supports the global attributes in HTML Event attribute:The <object > tag supports the event attributes in HTML. Supporting Browsers
Next TopicHTML ordered Tag
|