Image "Alt" tags not working

This is a discussion on "Image "Alt" tags not working" within the Web Page Design section. This forum, and the thread "Image "Alt" tags not working are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old May 12th, 2007, 19:03
Junior Member
Join Date: May 2007
Location: Cleveland Ohio
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Image "Alt" tags not working

For some reason I can not post anything? Not sure why? I wanted to get feedback on the following:
For the life of me I can not figure out why the "alt" text does not show up on my images when you mouse over them. The website is: www.rookaps.com
Here is an example of how I coded throughout the site:

<div style="position:absolute;left:461;top:86;width:197 ;height:26;">
<img src="rookaps001006.gif" title="" alt="Replace Your Lost Flash Drive Cap" align="top" border="0" vspace="0" hspace="0">
</div>

Help... am I missing something?
Reply With Quote

  #2 (permalink)  
Old May 12th, 2007, 19:08
SuperMember

SuperMember
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Image "Alt" tags not working

you need to close the image /> at the end
Code: Select all
<img src="rookaps001006.gif" title="" alt="Replace Your Lost Flash Drive Cap" align="top" border="0" vspace="0" hspace="0"/>
All the border=0 vspace= and hspace is not xhtml strict 1.0 appropriate.
Reply With Quote
  #3 (permalink)  
Old May 12th, 2007, 19:18
Junior Member
Join Date: May 2007
Location: Cleveland Ohio
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Image "Alt" tags not working

Thanks -- I'm almost embarassed to say this, but I didn't know img tags had to be closed. Thanks.
Reply With Quote
  #4 (permalink)  
Old May 12th, 2007, 19:20
SuperMember

SuperMember
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Image "Alt" tags not working

Just thinking depending on the doc type you are using, you may not..
hmmmmm.. maybe I spoke too soon. Let me know if it works.
Also if you aren't going to fill in the title="" then delete it.
Reply With Quote
  #5 (permalink)  
Old May 12th, 2007, 19:27
SuperMember

SuperMember
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Image "Alt" tags not working

Just peeked at your code and you don't have a doc type -
check this out.http://www.w3.org/QA/2002/04/valid-dtd-list.html
Reply With Quote
  #6 (permalink)  
Old May 12th, 2007, 19:38
Junior Member
Join Date: May 2007
Location: Cleveland Ohio
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Image "Alt" tags not working

Closing the <img> tags worked. Thanks!
Reply With Quote
  #7 (permalink)  
Old May 12th, 2007, 22:47
SuperMember

SuperMember
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Image "Alt" tags not working

Great... your welcome!
Reply With Quote
  #8 (permalink)  
Old May 14th, 2007, 12:21
karinne's Avatar
SuperMember

SuperMember
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Image "Alt" tags not working

One pet peeve of mine is people calling the alt attribute an alt tag!!! Ugh ... it's an attribute!

It's Ok ... I'm ok now
Reply With Quote
  #9 (permalink)  
Old May 14th, 2007, 13:31
SuperMember

SuperMember
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Image "Alt" tags not working

Oh man... I'll never learn all of this!!! NEVER!!!!!!!!!!!!!!!!!!
Reply With Quote
  #10 (permalink)  
Old May 14th, 2007, 22:15
Reputable Member
Join Date: Dec 2005
Location: Texas
Age: 19
Posts: 328
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to daygon Send a message via MSN to daygon Send a message via Yahoo to daygon
Re: Image "Alt" tags not working

some people just dont take the time. but we forgive you anyway. We all know karinne is picky like that. But you know we gotta love her too.
Reply With Quote
  #11 (permalink)  
Old May 15th, 2007, 17:34
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,765
Blog Entries: 1
Thanks: 0
Thanked 18 Times in 18 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
Re: Image "Alt" tags not working

Anything contained within a tag is an attribute, anything defining the tag is a tag. i.e. <a> is a tag while title="" alt="" would be an attribute to a tag. Bleh.
__________________
The internet is just a fad.
http://www.mevans76.com
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)

Last edited by moojoo; May 17th, 2007 at 21:24.
Reply With Quote
  #12 (permalink)  
Old May 15th, 2007, 22:59
SuperMember

SuperMember
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Image "Alt" tags not working

Thank you Professor Moojoo.. that was an excellent lesson!
Reply With Quote
  #13 (permalink)  
Old May 18th, 2007, 18:04
New Member
Join Date: May 2007
Location: Greece
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Image "Alt" tags not working

I never close img tags, half of the sites I developed don't have a DTD, and I never had a problem with alt tags. All working.
Reply With Quote
  #14 (permalink)  
Old May 18th, 2007, 19:23
SuperMember

SuperMember
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Image "Alt" tags not working

Well then you will learn a lot here. That's rule #1, use a doc type!
http://www.w3.org/QA/Tips/Doctype
Reply With Quote
  #15 (permalink)  
Old May 19th, 2007, 20:27
JacobHaug's Avatar
SuperMember

SuperMember
Join Date: Dec 2005
Location: On Internet
Posts: 4,859
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to JacobHaug Send a message via MSN to JacobHaug
Re: Image "Alt" tags not working

hahaha....you just described most web designers. Sad really, they don't take the time to design sites correctly using the proper coding. In fact most of them use TABLES...horribly uninformed.
Reply With Quote
  #16 (permalink)  
Old May 20th, 2007, 00:07
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Image "Alt" tags not working

Quote:
Originally Posted by jansoft View Post
I never close img tags, half of the sites I developed don't have a DTD, and I never had a problem with alt tags. All working.
Lol, and that's why the internet is moving forward so slowly.
Reply With Quote
  #17 (permalink)  
Old May 20th, 2007, 18:49
Reputable Member
Join Date: Dec 2005
Location: Texas
Age: 19
Posts: 328
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to daygon Send a message via MSN to daygon Send a message via Yahoo to daygon
Re: Image "Alt" tags not working

that why people should hire professionals that know what they're doing.
Reply With Quote
  #18 (permalink)  
Old May 20th, 2007, 21:21
New Member
Join Date: May 2007
Location: Greece
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Image "Alt" tags not working

Quote:
Originally Posted by daygon View Post
that why people should hire professionals that know what they're doing.
Aha. Take a look at cnn.com (for example, or any popular web site where budget is not a deal I suppose) source and you won't see any any closed img tag. I don't think that oranizations like this don't have the professionals.

In fact, closing or not tags like img, link, etc (all these tags that do not have an associative end tag) it has to do with HTML or XHTML. So if DTD is defined as HTML, then not closing these tags is fine. But if DTD is defined as XHTML these tags must be closed. (although internet explorer handles everything correctly).
Reply With Quote
  #19 (permalink)  
Old May 21st, 2007, 03:14
Reputable Member
Join Date: Dec 2005
Location: Texas
Age: 19
Posts: 328
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to daygon Send a message via MSN to daygon Send a message via Yahoo to daygon
Re: Image "Alt" tags not working

Quote:
Originally Posted by jansoft View Post
Aha. Take a look at cnn.com (for example, or any popular web site where budget is not a deal I suppose) source and you won't see any any closed img tag. I don't think that oranizations like this don't have the professionals.

In fact, closing or not tags like img, link, etc (all these tags that do not have an associative end tag) it has to do with HTML or XHTML. So if DTD is defined as HTML, then not closing these tags is fine. But if DTD is defined as XHTML these tags must be closed. (although internet explorer handles everything correctly).
yes but what you dont know is how easy it is for the major corperations to find a web designer. they probly use freelancers to do their work so they get big titles like "cnn" on their portfolios for little to no cost at all. its part of that whole game to boost your personal popularity while just getting by to pass the worst standards (IE) but then again compared to all the other browsers what is the percentage of people in the US (or even the world) of people using IE compare to ff, opera, safari, netscape, all those browsers? 80% of the people are running windows which comes standard with IE and most people dont care what browser they use as long as they can access the net. So if a designer and create a site that the MAJORITY of people use or that are going to view the site they have satisfied the majority if that particular site users where as the other 20% get screwed because of laziness, and poor designing skills. Jeeze if your going to do something do it right, pardon my french but, dont half ass your job. Thats what depreciates us REAL designers that could be giving people the right crap that satisfies 99.9% of users.

Sorry to be so long winded but it really grinds my gears when people cant do stuff the right way, being lazy.
Reply With Quote
  #20 (permalink)  
Old May 21st, 2007, 12:09
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Image "Alt" tags not working

Standards are here for a reason. They're like a speed limit, some people just go faster than they should, and someday, it's going to get them in trouble. Both are illegal in the US.
Reply With Quote
Reply

Tags
alt, image, tag

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
"overflow: hidden" not working on firefox when the div contains flash inside littleshaolin Web Page Design 0 May 21st, 2008 05:27
[SOLVED] Show "Image" Depends On User "Status"? Monie Classic ASP 6 Oct 16th, 2007 01:22
? IS "meta name="robots" content="?" necessary in pages ? Love2Java Starting Out 6 Aug 8th, 2007 13:48
window.opener.document["nameForm"].getElementById("someid").value; doesnt work drpompeii JavaScript Forum 0 Feb 17th, 2007 23:09


All times are GMT. The time now is 02:39.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43