HTML Object
The <object> element is a container to display external resources. What external resources? An <object> can display an image, video, audio, plug-ins, even another Web page.
Above is an example of an <object> containing another Web page. Here is an example of the code usage.
<!doctype html><html><head><title>My Object</title></head><body><object data="my_webpage.html" style="width: 100%;">Your browser does not support object elements.</object></body></html>
The data attribute is the source of the object.
Now the better way to put one Web page into another is to use an <iframe> element. For images use the <img> element, and video, the <video> element. For audio, use the <audio> element. As for plug-ins, some modern browsers no longer allow them. It seems the <object> element is on its way to becoming obsolete.
Next, we will talk about forms.
Comments
Post a Comment