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.
|
|
|
|
|
![]() |
||
Image "Alt" tags not working
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
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? |
|
|
|
#2
|
|||
|
|||
|
Re: Image "Alt" tags not working
you need to close the image /> at the end
|
|
#3
|
|||
|
|||
|
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.
|
|
#4
|
|||
|
|||
|
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. |
|
#5
|
|||
|
|||
|
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 |
|
#6
|
|||
|
|||
|
Re: Image "Alt" tags not working
Closing the <img> tags worked. Thanks!
|
|
#7
|
|||
|
|||
|
Re: Image "Alt" tags not working
Great... your welcome!
|
|
#8
|
|||
|
|||
|
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 |
|
#9
|
|||
|
|||
|
Re: Image "Alt" tags not working
Oh man... I'll never learn all of this!!! NEVER!!!!!!!!!!!!!!!!!!
|
|
#10
|
|||
|
|||
|
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.
|
|
#11
|
|||
|
|||
|
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. |
|
#12
|
|||
|
|||
|
Re: Image "Alt" tags not working
Thank you Professor Moojoo.. that was an excellent lesson!
|
|
#13
|
|||
|
|||
|
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.
|
|
#14
|
|||
|
|||
|
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 |
|
#15
|
|||
|
|||
|
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.
|
|
#16
|
||||
|
||||
|
Re: Image "Alt" tags not working
Lol, and that's why the internet is moving forward so slowly.
|
|
#17
|
|||
|
|||
|
Re: Image "Alt" tags not working
that why people should hire professionals that know what they're doing.
|
|
#18
|
|||
|
|||
|
Re: Image "Alt" tags not working
Quote:
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). |
|
#19
|
|||
|
|||
|
Re: Image "Alt" tags not working
Quote:
Sorry to be so long winded but it really grinds my gears when people cant do stuff the right way, being lazy. |