Which one is best TITLE or ALT

Noah Wylie

New Member
i have used alt in my web pages, but it only shows in IE and Netscape not in Firefox. I used Title then i can see in Firefox too . i don't have opera browser can any one help did opera accept this , title is best or alt is best little bit confusion can any help me and give me good solution for this :eek:
 

dhaynes

New Member
Of the two attributes, alt is the most important as it shows alternative text for images (e.g. when the image doesn't show up this text is shown). The 'title' is more for advisory information. I would say use 'title' but if it is an image make sure you definitely use 'alt'.
 

alloydog

New Member
alt is required if you want to be compliant to W3C standards and for aceesiblity.
alt is only used for images.

Internet Explorer will also resolve the alt attribute as a title when you place the cursor over the image. Firefox will not, however, so it advisable to use the title as well.

You can use the title attribute with almost any element, for example:
Code:
<a href="..." title="Click here to visit...">Link</a>
will cause the paragraph "Click here to visit..." to pop up if the cursor is placed over the link.


7.4.3 The title attribute
13.8 How to specify alternate text
 
Last edited:
Top