Skip to: content, navigation

alt (HTML attribute)

Spec
Depr. Version
No N/A

Syntax

alt="alternative text for embedded content"

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.

Example

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

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

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

Search