Difference between revisions of "Img Element"

From Level Access Web Labs
Jump to navigation Jump to search
Line 39: Line 39:
 
<html>
 
<html>
 
<img src="spacer.jpg" aria-hidden="true" />
 
<img src="spacer.jpg" aria-hidden="true" />
 +
</html>
 +
 +
==Image with state of aria-describedby=
 +
<html>
 +
<img src="office.jpg" aria-describedby="desc" />
 +
<p id="desc"> This is a description</p>
 
</html>
 
</html>
  
  
 
[[Category:Elements]]
 
[[Category:Elements]]

Revision as of 18:21, 3 April 2018

Image missing alt

Image with alt

The image below of an office building has an alt attribute set. Office

Decorative Image with null alt

Image with title

Images with aria-label

Images with aria-labelledby

Office building

Image with role of presentation

Image with state of aria-hidden true

=Image with state of aria-describedby

This is a description