1. Computing & Technology

Discuss in my forum

alt - HTML Attribute for Multimedia Tags

By , About.com Guide

alt:

The alt attribute provides a short description of the element content or object. It is used to make multimedia elements more accessible.

This attribute is not part of HTML 5, but you can still use it to make your embedded content more accessible.

Used with Elements:

Content:

A short text description of the contents of the tag.

Default:

Not required

Deprecated:

HTML 4 / XHTML 1: Yes
HTML 5: Not part of the standard

DTD:

HTML 4.01 Loose
XHTML 1.0 Loose

Other Alt Elements:

The alt attribute is used by many different tags, and has different rules for them. The below list includes the different uses of the alt HTML attribute.

©2012 About.com. All rights reserved.

A part of The New York Times Company.