Alt tags!?

Need technical advice on coding your web pages? Covers HTML, JavaScript, CSS, and some server side technologies. Also the issue of some webpages not displayed well.

Moderator: Don_HH2K

Alt tags!?

Postby jrread » Wed 23 Apr, 2003 12:05 pm

Does anyone know why alt tags don't appear in Netscape 7? Is there a setting to correct this issue?
Keith :?:
UserAgent: Mozilla/4.8 [en] (Win98; U)
jrread
junior member
junior member
 
Posts: 8
Joined: Sat 02 Nov, 2002 10:19 am

Postby Antony » Mon 28 Apr, 2003 1:10 am

Alt isn't used that often compared to Ctrl, but still there.
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02 (CK-SillyDog)
User avatar
Antony
diamond member
diamond member
 
Posts: 14509
Joined: Tue 18 Jun, 2002 11:36 pm
Location: Sydney, Australia

Postby jrread » Mon 28 Apr, 2003 7:49 am

I'm talking about putting alt tags in your graphics on websites, that appear when you hover over the graphic. They don't appear in Netscape 7. I can't figure out why.
Can anyone help?
Keith
UserAgent: Mozilla/4.8 [en] (Win98; U)
jrread
junior member
junior member
 
Posts: 8
Joined: Sat 02 Nov, 2002 10:19 am

Postby Fulvio » Mon 28 Apr, 2003 12:40 pm

jrread wrote:I'm talking about putting alt tags in your graphics on websites, that appear when you hover over the graphic. They don't appear in Netscape 7. I can't figure out why.
Can anyone help?
Keith


Can you give an example?
UserAgent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02 (CK-SillyDog)
A minority may be right, and a majority is always wrong
~ Henrik Ibsen
WinXP, SP3, 512 MB, SM2.9.1, FF12, TB12.0.1, IE8.0, Google Chrome18, Ghostwall , Avast 7.x, JRE1.7_04. Testing FF13b3
User avatar
Fulvio
Moderator
Moderator
 
Posts: 11914
Joined: Wed 19 Jun, 2002 10:08 am

Postby Ramona » Mon 28 Apr, 2003 3:16 pm

Hi Keith,

Did a quick Google Search on your problem, as I have noticed the same thing, on my web sites. I found this NG Thread which may help you.

If you are the author of the web page, simply add a "title" attribute for the mouseover text, to your image tags. For example:
Code: Select all
<img src="foobar.png" alt="image not displayed" title="mouseover text" width="640" height="480" border="0">

I did this on my Netscape Solutions page, but I still get nothing on a mouseover?

Ramona :D
UserAgent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02 (CK-SillyDog)
User avatar
Ramona
Moderator
Moderator
 
Posts: 2376
Joined: Wed 19 Jun, 2002 3:50 pm
Location: Midwest USA

Postby Shark Daddy » Mon 28 Apr, 2003 3:31 pm

The reason alt tags are not displayed, is because in HTML they aren't meant to be. That is, Internet Explorer got it all wrong, and now the general misconception is that they are meant to appear on mouseovers over images. The attiribute to use in your case is title, which also works in IE. This can also be applied to plain text (with a div or span, although IE is iffy in this area) and links also. The alt attribute is an accessability feature implemented by the W3C for those who don't or can't display images. Alt text should be on the order of "Sillydog logo image," and never "click here" or "Dog". "Image not displayed" isn't really great either. :? As for the title attribute, it's whatever you want to display on a mouseover.

If you wish to learn more, the W3C is very helpful. Hit "HTML".
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4b) Gecko/20030424
Last edited by Shark Daddy on Mon 28 Apr, 2003 10:48 pm, edited 2 times in total.
Shark Daddy
Moderator
Moderator
 
Posts: 519
Joined: Wed 19 Jun, 2002 11:19 am
Location: Toronto, Canada

Postby Ramona » Mon 28 Apr, 2003 3:41 pm

Shark Daddy,

The Title Tag DOES work in Opera 7.10, and Netscape 4.79, but still not in Netscape 7.02, or at least not for me? :(

Ramona
UserAgent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02 (CK-SillyDog)
User avatar
Ramona
Moderator
Moderator
 
Posts: 2376
Joined: Wed 19 Jun, 2002 3:50 pm
Location: Midwest USA

Postby jrread » Mon 28 Apr, 2003 4:38 pm

Example: <img src="picture.jpg" alt="whatever you want it to say">

The "whatever you want it to say" should show up in a little box, when you hover over the picture (graphic)!
Keith
UserAgent: Mozilla/4.8 [en] (Win98; U)
jrread
junior member
junior member
 
Posts: 8
Joined: Sat 02 Nov, 2002 10:19 am

Postby jrread » Mon 28 Apr, 2003 4:44 pm

Thank you all for the help! It seems that the title tag would be the logical solution.
Keith
Have a great day :P
UserAgent: Mozilla/4.8 [en] (Win98; U)
jrread
junior member
junior member
 
Posts: 8
Joined: Sat 02 Nov, 2002 10:19 am

Postby Ramona » Mon 28 Apr, 2003 4:48 pm

Keith,

Does the Title tag work for you?

Ramona :mrgreen:
UserAgent: Opera/7.10 (Windows 98; U) [en]
User avatar
Ramona
Moderator
Moderator
 
Posts: 2376
Joined: Wed 19 Jun, 2002 3:50 pm
Location: Midwest USA

Postby jrread » Mon 28 Apr, 2003 4:53 pm

I haven't tried it yet. I will either tonight or tomorrow.
Keith
UserAgent: Mozilla/4.8 [en] (Win98; U)
jrread
junior member
junior member
 
Posts: 8
Joined: Sat 02 Nov, 2002 10:19 am

Postby Antony » Mon 28 Apr, 2003 6:40 pm

Keith,
Sorry.

BTW, alt or title are attributes.

Ramona wrote:Shark Daddy,

The Title Tag DOES work in Opera 7.10, and Netscape 4.79, but still not in Netscape 7.02, or at least not for me? :(

Ramona

Ramona,
As Shark Daddy mentioned,
ALT attribute is designed for browser that does not support graphics.
TITLE attribute is designed for "tooltip," usually visible when you move mouse over it.
TITLE attribute usually used for links, and can be placed inside <IMG> tag or <A href=...> tag.
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02 (CK-SillyDog)
User avatar
Antony
diamond member
diamond member
 
Posts: 14509
Joined: Tue 18 Jun, 2002 11:36 pm
Location: Sydney, Australia

Postby Ramona » Mon 28 Apr, 2003 7:04 pm

Thanks Antony and Shark Daddy,

I see what you mean now... DUH! :roll:
UserAgent: Opera/7.10 (Windows 98; U) [en]
User avatar
Ramona
Moderator
Moderator
 
Posts: 2376
Joined: Wed 19 Jun, 2002 3:50 pm
Location: Midwest USA

Postby Shark Daddy » Mon 28 Apr, 2003 8:40 pm

:)
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4b) Gecko/20030424
Shark Daddy
Moderator
Moderator
 
Posts: 519
Joined: Wed 19 Jun, 2002 11:19 am
Location: Toronto, Canada


Return to Web Design and Page Coding

Who is online

Registered users: Google [Bot], Yahoo [Bot]