w3schools
Search W3Schools :  
  
HOME HTML CSS XML JAVASCRIPT ASP PHP SQL MORE...   References Examples Forum About
FLIGHT TICKETS

Find the cheapest
flight to any
destination now!

SMIL Tutorial

SMIL HOME
SMIL Intro
SMIL Files
SMIL HTML
SMIL XHTML
SMIL Timing
SMIL Sequence
SMIL Parallel
SMIL Transitions
SMIL Media

SMIL Examples

SMIL Examples

SMIL References

SMIL Reference

 

SMIL Media Elements

Previous Next

SMIL uses media elements to describe content.


Media Elements

The following media elements can be used to include media objects in a SMIL document:

Element Description Ver
<animation> Defines an animation 1
<audio> Defines an audio clip 1
<brush> Defines a brush 1
<img> Defines an image 1
<param> Defines a parameter 1
<ref> Defines a generic media reference 1
<text> Defines a text 1
<textstream> Defines a texstream 1
<video> Defines a video 1


Media Attributes

Each media object in a SMIL document must be included using a reference (URL) in the src attribute. The src attribute is the most commonly used attribute for media elements.

The type attribute is used to define the media type. If the type attribute is omitted the application should rely on the type information communicated by the server. Developers should not rely on the file type extension to define the file type.

Attribute Description Ver
erase Defines the behavior of the element after any timing is complete 1
src Defines the source of a media object 1
type Defines the media type 1

For a full list of SMIL elements and attributes: W3Schools SMIL Reference.


The <animation> Element

The <animation> element defines a reference to an animation object stored as vector graphics or in another animated format.


The <audio> Element

The <audio> element defines a reference to an audio object stored as recorded audio.

Example

<html xmlns:t="urn:schemas-microsoft-com:time">
<head>
<?import namespace="t" implementation="#default#time2">
</head>
<body>

<t:audio src="liar.wav" repeatCount="indefinite" type="wav" />

</body>
</html>

Try it yourself


The <brush> Element

The <brush> element defines a fill-color or fill-pattern.


The <img> Element

The <img> element defines a reference to an image object stored as JPG or an other image format.

Example: <img src="myimage.gif" type="GIF" />


The <param> Element

The <param> element defines a parameter to a media element.

Example: <param name="color" value="red" />


The <ref> Element

The <ref> element defines a reference to a generic media object.

The <ref> element can be used when the media type is not well defined.


The <text> Element

The <text> element defines a reference to a text object stored as text.


The <textstream> Element

The <textstream> element defines a reference to a text object stored as a text-stream.


The <video> Element

The <video> element defines a reference to a video object stored as recorded video.

Example

<html xmlns:t="urn:schemas-microsoft-com:time">
<head>
<?import namespace="t" implementation="#default#time2">
</head>
<body>

<t:video
src="http://www.ananova.com/about/vap_windows_check.wmv"
repeatCount="indefinite" type="wmv" />

</body>
</html>

Try it yourself


Previous Next


Altova® MissionKit® - Integrated Suite of XML tools

Altova MissionKit

The Altova MissionKit, recent winner of the Jolt Product Excellence and Productivity Award for Best Development Environment, is an integrated suite of tools ideal for:

  • XML development
  • Web & Web services development
  • Data mapping & integration
  • Rendering & publishing XML & database data
  • XBRL validation, taxonomy editing, transformation & rendering

The MissionKit for XML Developers includes XMLSpy®, MapForce®, and StyleVision® plus 3 additional tools for less than the price of 2.

Try all 6 products free for 30 days!

Download a fully-functional free trial

  Altova Missionkit


 
WEB HOSTING
Best Web Hosting
PHP MySQL Hosting
Top 10 Web Hosting
UK Reseller Hosting
Web Hosting
FREE Web Hosting
WEB BUILDING
Website Templates
Flash Templates
Website Builder
Internet Business Opportunity
Get a Freelancer
Download XML editor
FREE Flash Website
FREE Web Templates
FLIGHT TICKETS
Find the cheapest flight
to any destination now!
EDUCATION
US Web Design Schools
HTML Certification
JavaScript Certification
XML Certification
PHP Certification
ASP Certification
STATISTICS
Browser Statistics
Browser OS
Browser Display
W3Schools.com HOME | TOP | PRINT | FORUM | ABOUT
W3Schools is for training only. We do not warrant the correctness of its content. 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-2009 by Refsnes Data. All Rights Reserved.