home HOME

Media Basic
Media HOME
Media Intro
Sound Formats
Video Formats
Playing Sounds
Playing Videos
Windows Formats

Object Element
Object Intro
Object QuickTime
Object RealVideo

References
Tag Reference
Media Player Ref
MIME Reference

Selected Reading
Web Statistics
Web Glossary
Web Hosting
Web Quality

W3Schools Forum

Helping W3Schools

pixels

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

Jump to: Top of Page or HOME or Printer Friendly Printer friendly page

W3Schools provides material for training only. We do not warrant the correctness of its contents. The risk from using it lies entirely with the user. While using this site, you agree to have read and accepted our terms of use and privacy policy.

Copyright 1999-2007 by Refsnes Data. All Rights Reserved.

Validate Validate W3C-WAI level A conformance icon W3Schools was converted to XHTML in December 1999