Jump to content

ALT tag is doing Dramas in IMG Element


amitamberker
 Share

Recommended Posts

Hello Everyone,Any idea why alt="..." tag is not working anymore? Maybe HTML 5 does not need alt tag anymore? Should I consider using title="..." tag?

<img src="http://4.bp.blogspot.com/--H2CoC1Kbdw/T7PUPBFjYdI/AAAAAAAAAB4/HMU4gyl3exo/s1600/W3SchoolsLogo.png" alt="WHY ALT TAG IS NOT WORKING ANYMORE?" title="THIS WORKS PERFECT!" />
By the way:1. alt and title should be referred as Element or Tag? - (I think tag)2. img should be referred as Element or Tag? - (I think element)
Link to comment
Share on other sites

It's an attribute. The alt attribute still works, it is still the text to show if the image isn't displayed. That's always been the purpose of it. The title attribute is the text to show when you hover over the image. IE used to show the alt text when you hover, which wasn't the purpose of it.

  • Like 1
Link to comment
Share on other sites

It's an attribute. The alt attribute still works, it is still the text to show if the image isn't displayed. That's always been the purpose of it. The title attribute is the text to show when you hover over the image. IE used to show the alt text when you hover, which wasn't the purpose of it.
Hi justsomeguy, Oh! Okie... Okie... Thanks a lot for the clarification. I understood now. So, should I use alt and title attributes in all the img tags? By the way img is referred as tag or element?
Link to comment
Share on other sites

"<img>" is a tag that represents an img element in the DOM. The alt attribute is required, the title is optional.
Hi justsomeguy,Great!... I understood now. Thanks a lot Mate :)- TOPIC CLOSED -
Link to comment
Share on other sites

Hey justsomeguy,Why did you move this POST (Discussion) from "HTML/XHTML" segment to General" segment? Any specific reason? Because, I think I made this POST in "HTML/XHTML" segment...

Link to comment
Share on other sites

it wasn't moved. If it had been, you would still see it in the HTML/XHTML forum with an arrow next to the title. Although, it probably could be moved to the HTML/XHTML forum.

Edited by thescientist
Link to comment
Share on other sites

it wasn't moved. If it had been, you would still see it in the HTML/XHTML forum with an arrow next to the title. Although, it probably could be moved to the HTML/XHTML forum.
Hi thescientist,Thanks for your clarification. By the way I am just wondering if I did this post in General" segment or "HTML/XHTML" segment. I think this post should be in "HTML/XHTML" segment. So, how do I move it to "HTML/XHTML" segment? I have never moved My Threads (postings) from One Segment to Another Segment. I have no idea how to do it. I thought perhaps justsomeguy would have moved it from "HTML/XHTML" segment to General" segment. Maybe I might be wrong... So, how do I move it now?
Link to comment
Share on other sites

Okie, gotch you. Thank you All...

Link to comment
Share on other sites

Moderator (maybe justsomeguy) has moved this Thread to "HTML/XHTML" segment.Thank you for moving this Post into proper section.- TOPIC CLOSED -

Link to comment
Share on other sites

Guest So Called

Well first he wanted to move it, so the moderators went to the effort of moving it, and now he wants it closed. I guess that's what the OP's title means "Drama."

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...