Question:

The longdesc attribute

What is the longdesc attribute? Can you explain its purpose?

Answer:

The longdesc attribute of the img element has been around since HTML 4 and is also valid in HTML5. This attribute is designed to provide a more detailed description of an image, compared to the information offered in the alt attribute. The interesting thing is that instead of providing a description by itself (like the alt attribute does), longdesc points to a hyperlink containing the description.

An example of the use of longdesc is presented below:

Italy

The shown map of Italy illustrates its division in regions...


Keywords:

© 2017 QuizBucket.org