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.

Note:

CNXML 0.6 does not validate URLs that contain ampersand (&) characters (i.e., http://cnx.org/example?i=1&p=2). Check all media src URLs and replace any ampersands with the entity reference "&amp;". More information can be found on the W3C's page.

Example

This CNXML:


<media id="foto_de_perro"
       alt="Un perro sentado en una cama">
  <image mime-type="image/jpeg"
         src="image1.jpg" />
</media>
        

Results in this display:

Un perro sentado en una cama

Attributes(what's this?)

Children(what's this?)

audio, flash, video, text, java-applet, image, labview, download

Parents(what's this?)

preformat, para, title, label, cite, cite-title, link, emphasis, term, sub, sup, quote, foreign, footnote, equation, note, item, code, figure, subfigure, caption, text, commentary, meaning, entry, statement, proof, problem, solution, content, section
Close this window