|
LOL Chrishirst... That is a pet peave of mine... People don't seem to know the difference between an element, an attribute, and a tag... It's only a "tag" if you're talking specifically about the syntax used to open or close an HTML "element".
For example, "<a href="URL">my link text</a>" is an anchor "ELEMENT". "href" is an "ATTRIBUTE" of the anchor element. And </a> is the closing or ending "TAG" for the anchor element.
@OP The title ATTRIBUTE of the IMG ELEMENT is supposed to contain any text you want to appear when someone hovers their mouse over the image.
The alt ATTRIBUTE of the IMG ELEMENT is supposed to describe what is contained in the image so that those with images disabled or those with accessibility needs (blind people with screen readers) can visualize what the image looked like (for example, "White cat playing with a ball of yarn").
FYI... IE will display the ALT attribute value as hover text if there is no TITLE attribute present on the IMG element. Other browsers will only show hover text if the TITLE attribute is present.
Last edited by Social-Media; 10-22-2010 at 04:21 PM..
|