What is the longdesc attribute? Can you explain its purpose?
Answer / chaitu
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:
<img src="italy.jpg"
alt="This image represents the map of Italy" longdesc="italy.html#description">
<!-- other content here ... -->
<section id="description">
<h2>Italy</h2>
<p>The shown map of Italy illustrates its division
in regions...</p>
</section>
Is This Answer Correct ? | 0 Yes | 0 No |
How to create a button which acts like a link?
How do I link to a location in the middle of an HTML document?
How to create nest tables within tables in HTML?
Describe when it’s appropriate to use the small element and provide an example?
Consider the following markup: <figure> <picture> <source media="(min-width: 40em)" srcset="large.jpg 1024w, medium.jpg 640w, small.jpg 320y"> <img src="medium.jpg" alt="London by night"> </picture> <figcaption>A landscape of London by night</figcaption> </figure> Is it valid? If not, can you explain why?
What is the mark element? Can you describe an example of use for this element?
Is the alt attribute mandatory on img elements? If not, can you describe a scenario where it can be set to an empty value? Does an empty value affect accessibility in any way?
What is the longdesc attribute? Can you explain its purpose?
What’s the difference between the meter element and the progress element?
Can you describe why hgroup was dropped and how the markup can be addressed today with an example?
Which network design layer provides a connection point for end user devices to the network? access core distribution networkby a networking device
Explain marquee tag.