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.



 Subscribe in a reader

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

Notices


Reply
 
LinkBack Thread Tools
  #1  
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old May 12th, 2007, 19:08
Elite Veteran
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old May 12th, 2007, 19:20
Elite Veteran
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old May 12th, 2007, 19:27
Elite Veteran
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old May 12th, 2007, 22:47
Elite Veteran
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old May 14th, 2007, 12:21
Elite Veteran
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old May 14th, 2007, 13:31
Elite Veteran
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!!!!!!!!!!!!!!!!!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
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
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #11  
Old May 15th, 2007, 17:34
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,044
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
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.
__________________

Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)

Last edited by moojoo; May 17th, 2007 at 21:24.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #12  
Old May 15th, 2007, 22:59
Elite Veteran
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #13  
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #14  
Old May 18th, 2007, 19:23
Elite Veteran
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #15  
Old May 19th, 2007, 20:27
Elite Veteran
Join Date: Dec 2005
Location: On Internet
Posts: 4,859
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #16  
Old May 20th, 2007, 00:07
Ryan Fait's Avatar
Elite Veteran
Join Date: May 2006
Location: Las Vegas
Posts: 3,787
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #17  
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
Re: Image "Alt" tags not working

that why people should hire professionals that know what they're doing.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #18  
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).
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #19  
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
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!