Skip to: content, navigation

by Ian Lloyd

alt (HTML attribute)

Spec
Depr. Version
No N/A
alt="alternative text for embedded content"

Example

The alt attribute shows that this is a "stock ticker" applet:

<applet code="ticker.class" alt="Stock ticker">
</applet>

Description

In the event that the user cannot view the applet’s content, for whatever reason, the alt attribute provides an alternative can be be displayed to the user instead.

Value

A simple description of what the applet is or does.

Compatibility

None of the browsers tested appeared to render the alt attribute content, instead displaying blanks, broken Java symbols and so on.

User-contributed notes

There are no comments yet.

Add a note

To post a note on this topic, please log in with your SitePoint username and password. If you don't have an account yet, you can create a new account for free.

Related Products

The Principles of Beautiful Web Design

Best Seller!

You don’t need to go to Art School to design great looking web sites!

Book Cover: The Principles of Beautiful Web Design

Download the FREE sample chapters