longdesc Attribute


 

Where to use the longdesc Attribute

  • As Type URI:
    longdesc is declared on the element: img

Description

The longdesc attribute of an img element is used to specify a URI to a document containing a long description of the image, which should aim to expand upon the alternative text specified in the alt attribute.

Having said that, it appears that the longdesc attribute is very poorly supported by the majority of user agents (even assistive technologies) so if the content of an image is integral to the meaning of your page (and can't be described briefly using an alt attribute) it's always best to include a separate, visible link (using the a element) to the full description of the image.

Relative URIs in longdesc attributes are resolved with respect to the current document's base URI (see the base element).


Page Footer & Copyright

Copyright © Sally Maughan 2005-2009 (Page last updated on 16 May 2009)

*Valid XHTML 1.1 - hosted by *Openstrike

Content based on the W3C Working Draft: *XHTML 1.1 and Recommendation: *XHTML Modularisation 1.1.

W3C, XHTML, XML, HTML, CSS and MathML are *Trademarks of the W3C (*MIT, *ERCIM, *Keio) with which the site's author has no connection.


Up, Next & Previous Links

Your Location

Home > XHTML 1.1 Home > XHTML 1.1 Indexes > Attribute Index (XHTML 1.1) > longdesc Attribute (XHTML 1.1)