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
Starting with version 0.6, the CNXML language does not permit URLs that contain
ampersand (&) characters (i.e., http://cnx.org/example?i=1&
Check all media src
URLs and replace any ampersands with the entity
reference "&". More information can be found on the
alt="A dog sitting on a couch.">
Results in this display:
"Alt" text is used by browsers
and other tools to make the content of images available to all
users, including visually impaired users with screen readers.
It is a text representation of the meaning of an image.
Remember, "alt" text replaces an image; it does not describe
- block - The media will be set apart from the
- inline - The media will be included in the
current line of text.
- none - The media will not be displayed.
The URL of a file containing a long description of the media.
Not all readers will be able to see your included media in
their browser, either due to blindness, low-vision, or an
environment that doesn't support the media. Some media are
too complex to describe fully in a few words using the "alt"
attribute, however. For media like charts and graphs that are
important for understanding the material, use "longdesc" to point
to a Web file that contains a full explanation of the media.
A unique identifier, whose value must begin with a letter and contain only letters,
numbers, hyphens, underscores, colons, and/or periods (no spaces).
(media must be block display), para
(media must be block display), foreign
(media must be block display), item
(media must be block display), figure
(media must be block display), section
(media must be block display)