Pages

Wednesday 27 January 2016

The alt Attribute

The alt Attribute

The alt attribute specifies an alternative text to be used, when an HTML element cannot be displayed.
The value of the attribute can be read by "screen readers". This way, someone "listening" to the webpage, i.e. a blind person, can "hear" the element.

Example

<img src="w3schools.jpg" alt="mad2html" width="104" height="142">

No comments:

Post a Comment