Jump to content

alt attribute


smartchicken

Recommended Posts

Such needs are exactly the reason why W3C is going to make the IMG tag open in XHTML 2. What you have as src will be the image and the content inside will be the alt text. Scince it's an element content, this allows more styling options, greather alternatives, etc.There is no currently a way to make this in XHTML 1.0 or any HTML version.

Link to comment
Share on other sites

It is possible, this method works in firefox and opera but not in ie7 not sure about other browsers.You use styling to change the font

<img style="font-size: 18px; font-family: arial" alt="this is some text which will appear in the font arial size 18 if there is no image present!" src="logo.png" />

Link to comment
Share on other sites

  • 3 weeks later...
Ok listen to this one, i have looked for it but cant find the code to do it.... What i want to do is change the font in the alt="" attribute, any ideas on how i may do this?
You could try changing your basefont like this:<basefont size="4" color="name or hexcode" style="font">Insert after your body, pehaps this might work, I am not sure though.
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
×
×
  • Create New...