From http://www.w3schools.com (Copyright Refsnes Data)

The Object Element

Previous Next
Beatles

The <object> element can support many different media types, like:

  • Pictures

  • Sounds

  • Videos

  • Other Objects


Displaying A Picture

You can display a picture:

<object height="100%" width="100%"
type="image/jpeg" data="audi.jpeg">
</object>

Click here to try it yourself


Displaying A Web Page

You can display a web page:

<object type="text/html" height="100%" width="100%"
data="http://www.w3schools.com">
</object>

Click here to try it yourself


Displaying A Sound

You can display a sound:

<object
classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95">
<param name="FileName" value="liar.wav" />
</object>

Click here to try it yourself


Displaying A Video

You can display a video:

<object
classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95">
<param name="FileName" value="3d.wmv" />
</object>

Click here to try it yourself


Displaying A Calendar

You can display a calendar:

<object width="100%" height="80%"
classid="clsid:8E27C92B-1264-101C-8A2F-040224009C02">
<param name="BackColor" value="14544622">
<param name="DayLength" value="1">
</object>

Click here to try it yourself


Displaying Graphics

You can display graphics:

<object width="200" height="200"
classid="CLSID:369303C2-D7AC-11D0-89D5-00A0C90833E6">
<param name="Line0001"
value="setFillColor(255, 0, 255)">
<param name="Line0002"
value="Oval(-100, -50, 200, 100, 30)">
</object>

Click here to try it yourself


Displaying Flash

You can display a flash animation:

<object width="400" height="40"
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com
/pub/shockwave/cabs/flash/swflash.cab#4,0,0,0">
<param name="SRC" value="bookmark.swf">
<embed src="bookmark.swf" width="400" height="40"></embed>
</object>

Click here to try it yourself

Click here to try a fancy flash


Previous Next

From http://www.w3schools.com (Copyright Refsnes Data)