There is an alt attribute for img tags, but it is just that - an attribute.
I am assuming you are refering to the way in which IE uses the alt attribute of an image as a tooltip. It's well documented that IE shouldn't do this as this is the job of the title attribute. The alt attribute should only be displayed if the image doesn't load.
So, if you want to style the text that shows if the image doesn't load then yes you can do this. Just apply some color & font styling to the image or place it within another element and style that.
For example. If I am using an image for a company logo in a header I might do
Code:
<h1><img src="companylogo.gif" alt="Big Company Ltd" /></h1>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.