Longdesc attribute: Difference between revisions
Appearance
Content deleted Content added
→Linking to the long description in the text: I never suggested that. (Who did?) |
|||
Line 21: | Line 21: | ||
== Linking to the long description in the text == |
== Linking to the long description in the text == |
||
Since some browsers and screen readers have problems displaying the longdesc, or do not display it at all, it is |
Since some browsers and screen readers have problems displaying the longdesc, or do not display it at all, it is possible to link to the longdesc page outside of the <code><img/></code> tag with a capital "D": |
||
=== Example === |
=== Example === |
Revision as of 11:34, 8 February 2008
In HTML, longdesc is an attribute used within the image element, frame element, or iframe element. It is used to reference a long description website of the image, frame, or iframe in question.
Longdesc is often used by screen readers to display image information for computer users with accessibility issues, such as the blind or visually impaired.
This is especially important for image maps and similar images because the links of the maps can be listed on the longdesc website.
Example
<img src="Hello.jpg" longdesc="description.html" />
Content of description.html:
...
<p>This is an image of a two-layered birthday cake.</p>
...
Linking to the long description in the text
Since some browsers and screen readers have problems displaying the longdesc, or do not display it at all, it is possible to link to the longdesc page outside of the <img/>
tag with a capital "D":
Example
<img src="Hello.jpg" longdesc="description.html" /> [<a href=
"description.html" title="long description of the image">D</a>]