[_] XHTML Site logos!
Tim Beadle
tim.beadle at gmail.com
Wed Aug 8 13:12:51 BST 2007
On 08/08/2007, Daniel Course <dancourse at gmail.com> wrote: > I keep hitting a big decision every-time I create a new XHTML site, > do you create... > > the site logo as a gif, so it's a clickable link, then not have an > <h1> tag. > > -- Or -- > > create it as a background gif, with an display:none; for the <h1>My > Company</h1> and then it's not clickcable, but good for google etc... -- Or -- The gif has proper alt text (the company name, presumably) and is *inside* an <h1> element on the homepage, and a <div> on other pages (the h1 being reserved for the page's title on those non-home pages). -- Or -- You use a background image (png is probably a better choice than gif these days) on a link, like wot we done here: http://optics.org/ The clickable-or-not debate is moot. It can be clickable whether you use an <img> element or a background image in CSS, because what makes the link is the <a> element, not the image or text therein. An aside: we don't do this, but it's possible that your logo shouldn't be clickable on the homepage, as one of the cardinal rules of usability and accessibility is not to link to the page you're already on. HTH, Tim