A client of mine is teaching himself CSS. I took a look at some of his code today (at his request) and saw that while he had set up a hierarchy of headers (h1, h2, h3) in the HTML, he had done no more than put an image inside each of them, with an "alt" tag. One of them was a white rectangle inside the h1 tag, with an alt="Welcome".

My advice to him was that having the h1 tags around images doesn't turn them or their alt tags into proper headers. A text reader will still read the image as an image, and a web crawler won't find the h1 text it's looking for.

Then I had a tiny doubt. I thought it conceivable that an "alt" tag for an image inside an h tag could inherit status from its position. But it doesn't does it? Can anyone confirm what I told him?

Example:

<h2><img src="foo.jpg" alt="A great big foo." width="40px" height="40px" /></h2>

-Hugh Todd

******************************************************
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************



Reply via email to