English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The function of the plugin is to extend the functionality of the HTML browser.
Assistive applications (helper applications) are programs that can be started by the browser. Assistive applications are also known as plugins.
Assistive programs can be used to play audio and video (and other content). Assistive programs are loaded using the <object> tag.
One advantage of playing videos and audio with assistive programs is that you can allow users to control some or all of the playback settings.
Plugins can be added to the page using the <object> tag or the <embed> tag.
Most assistive applications allow manual (or programmatic) control of volume settings and playback functions (such as rewind, pause, stop, and play).
We can use the <video> and <audio> tags to display videos and audio |
All mainstream browsers support the <object> tag.
The <object> element defines an object embedded in an HTML document.
This tag is used to insert objects (such as embedding Java applets, PDF readers, Flash Player) .
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Basic Tutorial(oldtoolbag.com)</title> </head> <body> <object width="400" height="50" data="/run/html/bookmark.swf"></object> </body> </html>Test See ‹/›
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Basic Tutorial(oldtoolbag.com)</title> </head> <body> <object width="100%" height="500px" data="/run/demo_iframe.html"></object> </body> </html>Test See ‹/›
or insert an image:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Basic Tutorial(oldtoolbag.com)</title> </head> <body> <object data="/static/images/logo-n.png"></object> </body> </html>Test See ‹/›
All mainstream browsers support the <embed> element.
The <embed> element represents an HTML Embed object.
The <embed> element has been around for a long time, but in HTML5 was not explained in detail before, the <embed> element has been present in HTML 5 will be validated on the HTML 4 will not work.
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Basic Tutorial(oldtoolbag.com)</title> </head> <body> <embed width="400" height="50" src="/run/html/bookmark.swf"> </body> </html>Test See ‹/›
Note that the <embed> element does not have a closing tag. Alternative text cannot be used. |
The <embed> element can also be used to include HTML files:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Basic Tutorial(oldtoolbag.com)</title> </head> <body> <embed width="100%" height="500px" src="/run/demo_iframe.html"> </body> </html>Test See ‹/›
or insert an image:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Basic Tutorial(oldtoolbag.com)</title> </head> <body> <embed src="/static/images/logo-n.png"> </body> </html>Test See ‹/›