homepage Welcome to WebmasterWorld Guest from 204.236.254.124
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderator: open

CSS Forum

    
Add image alt tag by using CSS code
2010_Movies




msg:4394306
 9:41 am on Dec 5, 2011 (gmt 0)

Have there any way to add image alt tag by using CSS code? I can do it in HTML but not in CSS.
Please help me.

 

penders




msg:4394320
 10:22 am on Dec 5, 2011 (gmt 0)

You can not influence the ALT attribute using CSS. You could perhaps add this with JavaScript, but it's not going to be particularly accessible or SE friendly. The ALT text needs to be hard coded in the HTML.

alt131




msg:4394758
 2:43 pm on Dec 6, 2011 (gmt 0)

Hi 2010_Movies, I guess my question is why are you trying to set the alt via css? Put another way, what is the coding situation that means you cannot hard-code the alt into the html?

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved