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 |
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?
Is it possible to express a date range using a single time element?
Explain marquee tag.
Which network design layer provides a connection point for end user devices to the network? access core distribution networkby a networking device
Describe when it’s appropriate to use the small element and provide an example?
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?
Can you describe why hgroup was dropped and how the markup can be addressed today with an example?
What is the mark element? Can you describe an example of use for this element?
How do I link to a location in the middle of an HTML document?
What’s the difference between the meter element and the progress element?
What is the longdesc attribute? Can you explain its purpose?
How to create a button which acts like a link?