Yes, that's how to do it. You should not have </a> at the end there unless the image is linked.
Like the other attributes of tags, it can go anywhere within the (opening*) tag.
In older IE, the alt attribute is treated as a title attribute when no title is present. Other browsers will not do this. You should decide if you also want this information as a title. Titles appear as tool tips on hover of the image. If not, add a blank title:
Code:
<img src="fiat/flip-remote-3button.png" title="" alt="IMAGE DESCRIPTION HERE" width="150" height="52" class="imgshadow" />
If you do want it as a tool tip in all browsers, make it the same as the alt:
Code:
<img src="fiat/flip-remote-3button.png" title="IMAGE DESCRIPTION HERE" alt="IMAGE DESCRIPTION HERE" width="150" height="52" class="imgshadow" />
Or you can make it something different:
Code:
<img src="fiat/flip-remote-3button.png" title="Some other text" alt="IMAGE DESCRIPTION HERE" width="150" height="52" class="imgshadow" />
All browsers will show/not show a tool tip under these conditions.
Or, you can ignore older IE by using no title at all, and let it show that alt as a tool tip. Less typing.
* img is a self closing tag, so has only an opening section
Bookmarks