There's nothing in the HTML specs that would indicate that the contents of a header are limited to text. AFAIK you can put any inline level content in a header. In my opinion using an image with alt text is much better than using a background image with invisible text. In makes more sense semantically (because the images *is* the content) and also practically because trying to fake it can cause all sorts of accessibility issues.
You should try to make sure you actually are using a header as a header. This is quite a mess because many web pages don't really fit the simple h1 > h2 > etc hierarchy. It works well for academic papers, but wenever I go to to build a website I always find myself confused as to what should be the <h1>. Many web pages that I make don't have one because the user already knows what the pages is about and adding another title just takes up valueable real estate. Katrina wrote: > Gday, > > I was lucky enough to be able to attend WE05, and I was listening to > something Tantek Celik said and I've been mulling it over for a few > days, and I just thought I'd ask a group who'd know. > > Context: I'm a uni student, so I don't know much. > > Going back to Tantek Celik, he was referring to meaningful markup and he > said > > "Who has ever seen a div with a class of header? Why not use a header > (eg.<h1>) element?" > > I may not have understood that. I may have misheard that. I'm sorry if I > did. > > Aren't the header tags reserved for text? Is it acceptable form to place > non-textual elements only inside of header tags? Eg. <h1><img > src="image.jpg" alt="An image"></h1> ? > > Kat ****************************************************** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help ******************************************************
