next up previous
Next: Relative Position Example Up: Positioning Media Previous: The Region tag

The img tag

To insert the Cardiff icon in the region called "cardiff_icon", we use the <img> tag as shown in the source below.

Note that the region attribute is a pointer to the <region> tag.

  <smil>
   <head>
    <layout>
     <root-layout width="600" height="300" 
          background-color="white" />
     <region id="cardiff_icon" left="30" top="25" 
          width="533" height="250" />
    </layout>
   </head>
   <body>
    <img src="cardiff.gif" alt="The Cardiff icon"
          region="cardiff_icon" />
   </body>
  </smil>

This produces the following output:

Simple Cardiff Image Placement in SMIL



Dave Marshall
10/4/2001