HTML
|
JavaScript
Alignment
Basics
Character Codes
Colors
CSS
DIVS
Forms
Frames
Links
Lists and Bullets
Meta Tags
Multimedia
Pictures
Spacing
Tables
Text
Adding Pictures
Align Pictures
Alternative Name
Background Picture
Picture Border
Picture Link
Picture Spacing
Table Background
Width and Height
Alternative Name
243
Alt Tag
Description
This tag will allow you to add the alternative name to your pictures. The tag for the alternative name looks like ALT="xxxx". This adds onto the picture tag, so the end result looks like
<IMG SRC="url" ALT="xxxx">
The xxxx, is replaced with the text you want the Alternative Name to be. You can choose whatever you want for this, although it should describe the picture. Below is an example, with the Alternative Name being "My Picture". We have purposely linked the picture to a bad address, so only the Alternative Name will show.
Code
<IMG SRC="images/wrong.gif" ALT="My Picture">
Output
Practice
<IMG SRC="images/wrong.gif" ALT="My Picture">
Advertisements