W3Schools

home HOME

SMIL Tutorial

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

Selected Reading
Web Statistics
Web Glossary
Web Hosting
Web Quality

W3Schools Forum

Helping W3Schools

SMIL Introduction

Previous Next

SMIL is an easy-to-learn HTML-like language for describing audiovisual presentations.


What You Should Already Know

Before you continue you should have a basic understanding of the following:

  • HTML
  • XHTML
  • XML
  • XML namespaces

If you want to study these subjects first, find the tutorials on our Home Page.


What Is SMIL?

  • SMIL stands for Synchronized Multimedia Integration Language
  • SMIL is pronounced "smile"
  • SMIL is a language for describing audiovisual presentations
  • SMIL is easy to learn and understand
  • SMIL is an HTML-like language
  • SMIL is written in XML
  • SMIL presentations can be written using a text-editor
  • SMIL is a W3C standard

A Simplified SMIL Example

<smil>
<body>
  <seq repeatCount="indefinite">
    <img src="image1.jpg" dur="3s" />
    <img src="image2.jpg" dur="3s" />
  </seq>
</body>
</smil>

From the example above you can see that SMIL is an XML based, easy to understand, HTML-like language that can be written using a simple text-editor.

The <smil></smil> tags defines the SMIL document. A <body> element defines the body of the presentation. A <seq> element defines a sequence to display. The repeatCount attribute defines an indefinite loop. Each <img> element has a src attribute to define the image source and a dur attribute to define the duration of the display.


What Can SMIL Do?

  • SMIL can be used to create Internet or Intranet presentations
  • SMIL can be used to create slide-show presentations
  • SMIL has been described as the Internet answer to PowerPoint
  • SMIL presentations can display multiple file types (text, video, audio...)
  • SMIL presentations can display multiple files at the same time
  • SMIL presentations can display files from multiple web servers
  • SMIL presentations can contain links to other SMIL presentations
  • SMIL presentations can contain control buttons (stop, start, next, ...)
  • SMIL has functions for defining sequences and duration of elements
  • SMIL has functions for defining position and visibility of elements

SMIL At W3C

W3C has been developing SMIL since 1997, as a language for choreographing multimedia presentations where audio, video, text and graphics are combined in real-time.

SMIL was presented as a working draft in November 1997.

SMIL 1.0 became a W3C Recommendation in. June 1998.

SMIL 2.0 became a W3C Recommendation in August 2001.


Previous Next


Learn XML with Stylus Studio XML Editor – Free Download

Stylus Studio provides tools for editing and debugging XML, XSLT, XML Schema, DTD, XQuery, Web Services,and more!

Using Stylus Studio XML Tools You Can:

See why millions use Stylus Studio as their preferred XML tool. Download a FREE TRIAL or watch an online VIDEO DEMO today!




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-2008 by Refsnes Data. All Rights Reserved.

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