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 |
|
|||
|
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? |
|
|
|
|||
|
Re: Image "Alt" tags not working
you need to close the image /> at the end
|
|
|||
|
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.
|
|
|||
|
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. |
|
|||
|
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 |
|
|||
|
Re: Image "Alt" tags not working
Closing the <img> tags worked. Thanks!
|
|
|||
|
Re: Image "Alt" tags not working
Great... your welcome!
|
|
||||
|
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 |
|
|||
|
Re: Image "Alt" tags not working
Oh man... I'll never learn all of this!!! NEVER!!!!!!!!!!!!!!!!!!
|
|
|||
|
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.
|
|
||||
|
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. |
|
|||
|
Re: Image "Alt" tags not working
Thank you Professor Moojoo.. that was an excellent lesson!
|
|
|||
|
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.
|
|
|||
|
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 |
|
||||
|
Re: Image "Alt" tags not working
Lol, and that's why the internet is moving forward so slowly.
|
|
|||
|
Re: Image "Alt" tags not working
that why people should hire professionals that know what they're doing.
|
|
|||
|
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). |
|
|||
|
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. |
|
||||
|
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.
|
![]() |
| Tags |
| alt, image, tag |
| Thread Tools | |
|
|
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 |