HTML
<object> Tag
Definition and Usage
The <object> tag defines a container for an external
resource.
The external resource can be a web page, a picture, a media
player, or a plug-in application.
Ø To embed a picture, it is better to use the
<img> tag.
Ø To embed HTML, it is better to use the <iframe>
tag.
Ø To embed video or audio, it is better to use the
<video> and <audio> tags.
Example
An embedded image:
<object
data="pic_trulli.jpg" width="300" height="200"></object>
Example
An embedded HTML page:
<object
data="snippet.html" width="500"
height="200"></object>
Example
An embedded video:
<object
data="video.mp4" width="400"
height="300"></object>
Comments
Post a Comment