Alt Tag text problem

User Help for Seamonkey and Mozilla Suite
Locked
abcbook
Posts: 2
Joined: August 3rd, 2006, 4:58 pm
Location: USA
Contact:

Alt Tag text problem

Post by abcbook »

I am using Mozilla 1.7.7. When I preview a web page I am working on in IE everything is fine. When I preview the same page in Mozilla the TEXT that is contained inside the ALT TAGS, for images, is showing up on the webpage as regular page text content.

This is causing big problems showing text that should not be shown in the page content.

I have discovered that if I use a Title Tag instead of the Alt tag Mozilla behaves. Rather not do this as alt tag needs to be used for SEO keywords, according to my understandings, (which does not mean it is correct"

Is this a glitch in Mozilla or is it in the preferences section and I just can not find it.

Anyones help would be greatly appreciated as I am lost as to how to eliminate the problem

Thanks
abcbook
User avatar
Daifne
Moderator
Posts: 123071
Joined: July 31st, 2005, 9:17 pm
Location: Where the Waters Meet, Wisconsin

Post by Daifne »

Moving to Seamonkey Support where Mozilla Suite is also supported.
abcbook
Posts: 2
Joined: August 3rd, 2006, 4:58 pm
Location: USA
Contact:

Post by abcbook »

The alt tags I am using ARE for image tags
<img src="http://xxxx.com/xx-xxx/xxx=xxxx=77305.10000149&type=3&xxxx=0" alt="xxxxx ">

Is the problem that even though an image tag is being used, i should not use the alt tag as an image is not actually being loaded?

Sorry but I have been stumbling through creating this on my own from knowing absolutely nothing so I do not intend to sound too dumb.

Thanks
abcbook
abcbook
User avatar
HoTMetaL
Posts: 114
Joined: July 19th, 2006, 5:57 pm
Location: Knoxville, TN USA

Post by HoTMetaL »

Both Mozilla and SeaMonkey are rendering the web page exactly according to the W3C's HTML 4 specification. In other words, Mozilla gets it right, and IE still does it the wrong way. According to the spec, the ALT (Alternate Text) attribute is used with the IMG (Image) element to display text when users are viewing the page with a non-graphical browser or other device.

The TITLE attribute is used with the IMG element to provide a tooltip that is displayed when a user mouses over the image. Microsoft IE has been doing this wrong for years and years.

To answer your question, this is not a "glitch" in Mozilla, and it cannot be changed in Preferences. You should design your web pages using the correct attributes ("tags") and then your pages will display as intended in most modern web browsers.
User avatar
BenoitRen
Posts: 5946
Joined: April 11th, 2004, 10:20 am
Location: Belgium

Post by BenoitRen »

Is the problem that even though an image tag is being used, i should not use the alt tag as an image is not actually being loaded?

Are you trying some weird hack?
Also, alt is an attribute of the image tag, not a tag.

Finally, you should upgrade to SeaMonkey 1.0. It's basically Mozilla 1.8.
User avatar
FraidyCat
Posts: 44
Joined: May 18th, 2006, 12:11 pm

Post by FraidyCat »

As mentioned you should upgrade to SeaMonkey1.04. That said this is the code that WFM to get the right display:

<body>
<div>
<p>
<img src="my picture" alt="This is a the picture" width="700" height="186">
</p>
</div>
</body>

A recommended source for helping with coding is http://www.w3cschools.com
User avatar
FraidyCat
Posts: 44
Joined: May 18th, 2006, 12:11 pm

Post by FraidyCat »

Sorry....you'll have to look at View Page Source for this page to see the line of code that I used where the image is framed. As you can see an image was not actually loaded, but the alternate text shows up.
User avatar
BenoitRen
Posts: 5946
Joined: April 11th, 2004, 10:20 am
Location: Belgium

Post by BenoitRen »

Hey FraidyCat, you can just tick the box "Disable HTML for this post" when editing it to fix that. :)
Also, the link is incorrect. It's http://www.w3schools.com/
dtobias
Posts: 2098
Joined: November 9th, 2002, 3:35 pm
Location: Boca Raton, FL
Contact:

Post by dtobias »

I don't exactly understand why the original poster is using an image tag when no image is being loaded, but if that is the case, then the proper thing for a browser to do is display the ALT text, which is the alternative content to the image for cases where the image is not displayed.
Dan's Web Tips: http://webtips.dan.info/
Dan's Domain Site: http://domains.dan.info/
Dan's Mail Format Site: http://mailformat.dan.info/
john hartig
Guest

Re: Alt Tag text problem

Post by john hartig »

I've got this problem too of my alt tag actually seen as text in the browser. My page looks ugly in Firefox because of this problem. At least with Internet Explorer the alt only shows up when I hover my mouse over the image, but the page looks fine. With Firefox, the unwanted alt text is seen no matter where the cursor is. Ugh.
Guest
Guest

Re: Alt Tag text problem

Post by Guest »

The way I "solved" this problem of alt tag words showing up in the browser page as actual text: is to leave the alt tag blank, i.e. alt="". I tried putting text into the tag thinking that this would help my search engine optimization...but then I got these words appearing in my page which I didn't want. IE did not show the words, they were invisible except when I hovered the cursor over the image. Firefox showed the words and the page looked terrible with words that were supposed to be hidden. I guess I'll just have to leave the alt="" empty and hoping that my search engine optimization is not lessened.
dtobias
Posts: 2098
Joined: November 9th, 2002, 3:35 pm
Location: Boca Raton, FL
Contact:

Re: Alt Tag text problem

Post by dtobias »

The last two posters apparently have images that are not loading correctly, in which case the proper thing for the browser to do is to display the ALT text, which is supposed to be a textual replacement for the content of the image. If the image is just content-free
decoration, an empty ALT is proper, but if it has content (e.g., text in the form of an image), then the ALT text is important for preserving the content of the page in instances where the reader can't or won't load the image.
Dan's Web Tips: http://webtips.dan.info/
Dan's Domain Site: http://domains.dan.info/
Dan's Mail Format Site: http://mailformat.dan.info/
Locked