| Depr. | Version |
|---|---|
| No | N/A |
Syntax
Description
In the event that the user
cannot view the content of the embed element - perhaps
because of a very slow connection, an incorrect src attribute, or even
because the user is blind and is accessing the content using a screen
reader - the alt attribute provides an alternative
to the content that can be used instead.
Example
The alt
attribute clearly explains what the image in this embed
element contains:
<embed src="giant-grasshopper.jpg" width="300" height="100" alt="A giant grasshopper on a roof-top"></embed>
Value
For guidelines regarding the correct
usage of the alt attribute, please refer to the
section about alt in
the img element type.
Compatibility
Poorly supported when
used with the embed element. None of the browsers
supported rendered alternative text on the page when the media referred to
inside the src attribute were not available. For
images, you should instead use the img element and the alt attribute for that
element (which has excellent support).
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.