Using the <object> Tag to Insert Objects
24-01-18 Course- HTML5-Simple
HTML also provides the facility to insert various multimedia objects using the <object> tag. This tag uses two attributes to give the specification of the multimedia object. The first attribute is data, which specifies the path of the multimedia object, and the second attribute is type, which specifies the type of multimedia object, such as audio and video.
Let’s do the following steps to use the <object> tag to insert objects:
<!DOCTYPE html>
<head>
<title> Using the <object> Tag </title>
</head>
<body>
<center>
<h1>Embedding through <OBJECT< TAG</h1>
<h2>Embedding an Audio File</h2>
<object data=”audio\mysong.mp3” />
</center>
</body>
</html>
Save the document with the name ObjectEmbeding.html and open on browser.