This is a discussion on "alt or title" within the Web Page Design section. This forum, and the thread "alt or title are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
alt or title
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
alt or title
Hi forumz
I donno if im right but I think that alt and title do the same job. Alt dispays the name described if the image is not loaded but the mouse over thing doesn't show in FF. Title does't display the back name if the image is not loaded but shows the mouse over. Which one do you guys prefer Jon |
|
|
|
#2
|
|||
|
|||
|
Re: alt or title
Alt is for images and Title is for links. I am not sure if title displays for images that are links, I don't use images for navigation. I mainly use the 2 tags for accessibility.
__________________
Web Design and Development |
|
#3
|
|||
|
|||
|
Re: alt or title
I use them both mainly because if you use title within a <img src="" alt"" title""> as it then acts as alt tag in FIREFOX
|
|
#4
|
|||
|
|||
|
Re: alt or title
The title attribute is used to provide extra, advisory information about the element for which it is set whereas the alt attribute is used to give a text alternative for visual elements.
The title attribute can specified for many HTML elements, the alt attribute only for a few. IMG and AREA elements must have the alt attribute set. Check the HTML spec for more info on which elements these attribute are allowed (or necessary) on. They are essential for accessibility and you shouldn't really be leaving either of them off apart from in exceptional circumstances. These attributes are not tool-tips and should not be used as such. Use JS, CSS or a combinations of the two for tool-tips and the like. Pete. |
|
#5
|
|||
|
|||
|
Re: alt or title
ok but for user friendly purpose they can be used like tool tips some sites right where you don't need to have a big thing appearing. Actually that is what I thot they do I didn't anything else about them. Thanks
|
![]() |
| Tags |
| alt or title |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| title? | Aesir | Web Page Design | 4 | Mar 12th, 2008 15:58 |
| <title>Tennis London : Tennis History</title> how should it read | Oak | Search Engine Optimization (SEO) | 5 | Feb 6th, 2008 01:31 |
| ALT & TITLE tags? | RZX Developer | Search Engine Optimization (SEO) | 5 | Dec 18th, 2007 15:10 |
| Not sure how to title this. | vbfrost | Web Page Design | 6 | Sep 14th, 2006 20:42 |