W3C home > Mailing lists > Public > w3c-wai-ig@w3.org > January to March 2006

Re: Display: none

From: Paul Novitski <paul@juniperwebcraft.com>
Date: Tue, 14 Mar 2006 16:23:04 -0800
Message-Id: <6.2.3.4.2.20060314161701.04d2dd78@spamarrest.com>
To: w3c-wai-ig@w3.org

At 02:11 PM 3/14/2006, David Woolley wrote:

> > <div id="logohead">
> >          <img src="logo.jpg" alt="Acme Widgets" />
> >          <h1>Acme Widgets</h1>
> > </div>
>
>What's wrong with:
>
>           <h1><img src="logo.jpg" alt="Acme Widgets"></h1>


I would assume that, in the case of a browser with images turned off, 
this would display nothing.  I also have doubts that a search engine 
would index the alt as being the content of the headline; I'll poke 
around on Google for evidence of that.

My initial markup of this block was:

<h1>
         <img src="logo.jpg" alt="Acme Widgets" />
         <span>Acme Widgets</span>
</h1>

but my confidence wavered and I fell back to a div, perhaps unwarrantedly.

Regards,
Paul 
Received on Wednesday, 15 March 2006 00:23:21 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 19 July 2011 18:14:24 GMT