longdesc attribute
This article may not meet the general notability guideline. Please help to establish notability by adding reliable, secondary sources about the topic. If notability cannot be established, the article is likely to be merged, redirected, or deleted. (October 2007) |
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.[1]
While longdesc was designed to be used by screen readers to display image information for computer users with accessibility issues, such as the blind or visually impaired,[2] it is actually seldom used for this purpose, because there are relatively few authors who use the attribute, and most of those authors use it incorrectly.[3]
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 very few browsers and screen readers do make the link available at all, it is advisable to include a link to the description page near the img
element.
Example
<img src="Hello.jpg" longdesc="description.html"> [<a href=
"description.html" title="long description of the image">D</a>]
Obsoleting longdesc
HTML5 forbids the usage of the longdesc attribute by authors, due to it limited use.[4]
See also
References
- ↑ "Objects, Images, and Applets". W3C. http://www.w3.org/TR/REC-html40/struct/objects.html. Retrieved 2008-12-20.
- ↑ "Creating Accessible Images". WebAim. http://www.webaim.org/techniques/images/longdesc.php#longdesc. Retrieved 2008-12-20.
- ↑ http://wiki.whatwg.org/wiki/Longdesc_usage
- ↑ http://www.whatwg.org/html5/#attr-img-longdesc
External links
Stub icon | This World Wide Web-related article is a stub. You can help Wikipedia by expanding it. |
If you like SEOmastering Site, you can support it by - BTC: bc1qppjcl3c2cyjazy6lepmrv3fh6ke9mxs7zpfky0 , TRC20 and more...