alt Attribute

The alt attribute allows to attach a description to an image. The value of the alt attribute can be any double quoted string of less than 1024 characters. Its not required but it is strongly recommended to add the alt attribute to the <img> element.

For descriptions with more than 1024 characters, use the longdesc attribute of the <img> element.

alt="Quote Fellas - A website to get world famous quotes"

Note
- If the browser cannot download an image or set to not download the images, the browser will render the value of the alt attribute instead of the image.
- A tooltip will appear containing the value of the alt attribute if we hover the mouse over an image
- The value of the alt attribute is important for tool to aid vision-impaired people.

Related Tutorial
Follow Us
https://www.facebook.com/Rookie-Nerd-638990322793530 https://twitter.com/RookieNerdTutor https://plus.google.com/b/117136517396468545840 #
Contents +