Close this window

Using the <media> tag

Description The media tag is used to insert media objects into a CNXML document. The media objects can be images, applets, movies, sounds, or any object with a valid MIME type.
Example
<media type="application/postscript" 
       src="image1.eps">
  <param name='height' value='300'/>
  <param name='width'  value='200'/>
  <media type='image/png' src='image2.png'/>
</media>
	
The example illustrates the use of nested media tags. The outer (first) media's src attribute specifies the preferred image. If the reader's browser does not support that media type, the image specificied in the inner media's src attribute is used.
Attributes (what's this?)
Children (what's this?) The media tag may contain one or more param tags, followed by one or more media tags.
Parents (what's this?)figure, subfigure, equation, media, para, item, entry, content, section, example, meaning, proof, statement, problem, solution
Close this window