[thelist] headers, logo images, and semantic markup
Paul Bennett
Paul.Bennett at wcc.govt.nz
Mon Jan 5 20:43:15 CST 2009
Before we get into an image replacement / SiFR debate, in my experience this works fine:
<h1><img src="" alt="Company Name. " ... /></h1>
<h2>About Us</h2>
Why? The code is semantic, screen readers / assistive devices will still be able to use the heading structure, it renders fine with CSS on / images off (as well as CSS off, images on and CSS off, images off and pretty much any other odd situation you can think of) and search engines will still index and rank the alt content of the image as content of the important h1 text.
:)
Paul
More information about the thelist
mailing list