I've been doing a lot of CSS coding, and I've started to think about just how SEO friendly my code really is. I've come up with a few questions that I'd like to ask:
Question 1: Are images just as affective as text?
A lot of web sites use a logo image wrapped in an <h1> tag. Some use text and overlay the logo with a nested <span> tag.
How SEO friendly are images that properly use Title and Alt attributes? Are they just as affective as text? Or is text that much better to forgive the extra non-semantic <span> tag?
Question 2: How many <h1> tags can I use?
I've always been under the impression that you should use one single <h1> tag, period. In fact, most web sites I see use <h1> for the logo and leave it at that. However it's come to my attention that alistapart.com uses two when you view an article page (<h1> wrapped around the logo, and <h1> for the article header).
What is the actual appropriate use for <h1>? Is it acceptable to have two? Thoughts on using <h1> for the logo and nothing else?
Question 3: How should headers be nested?
I've seen header tags nested in two ways:
1) By page section. e.g. Logo uses <h1>, content uses <h2>, sidebar uses <h3>
Example:
2) By content section. e.g. Content and sidebar both use <h2>, any subsections use <h3>, regardless if its content or sidebar header.Code:<h1>logo</h1> <div id="content"> <h2>content title</h2> ... <h2>content title</h2> ... </div> <div id="sidebar"> <h3>sidebar title</h3> ... <h3>sidebar title</h3> ... </div>
Example:
Does it matter in terms of SEO? Is it personal preference?Code:<h1>logo</h1> <div id="content"> <h2>content title</h2> ... <h3>subsection title</h3> ... <h2>content title</h2> ... <h3>subsection title</h3> ... </div> <div id="sidebar"> <h2>sidebar title</h2> ... <h2>sidebar title</h2> ... </div>
Thanks for your time.








The H1 heading element is used to denote the topmost heading of the page. In layman's terms, this would be the page title, and nothing more.

Bookmarks