Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the best way to structure an HTML document for SEO and accessibility?

What's the recommended way to structure html that includes navigation so it's still SEO'able and accessible.

For example, should the structure be more like that of a document:

  1. Skip to content (link, hidden by CSS)
  2. Navigation
  3. Content
  4. Other content (right hand panes etc)

or:

  1. Skip to navigation (link, hidden by CSS)
  2. Content
  3. Navigation
  4. Other content (right hand panes etc)

Obviously CSS is used to control the layout, but bots and screen-readers ignore the CSS.

like image 918
Kieron Avatar asked Mar 12 '09 13:03

Kieron


People also ask

Does HTML structure affect SEO?

Since websites often have multiple pages, it's vital that the content is organized in a way that makes sense. If your site structure is confusing, then it'll hinder your SEO (search engine optimization) and frustrate users.

How is an HTML document structured?

7.1 Introduction to the structure of an HTML documenta line containing HTML version information, a declarative header section (delimited by the HEAD element), a body, which contains the document's actual content. The body may be implemented by the BODY element or the FRAMESET element.

How do HTML elements improve accessibility?

Well-structured semantic HTML helps screen reader users better understand the layout of your page. It also lets them preview sections and skip between different content regions, similar to how sighted readers skim web pages. This HTML structure is much more navigable than a clump of generic <div> and <span> tags.


2 Answers

I've been asked to move the navigation after content by a client before, but I don't think it helped them much. I generally follow the first structure you mention above.

Some random tips:

  • Keep your markup standards-compliant, valid and simple.
  • Don't stuff keywords or anything.
  • Treat headings like they should be treated. Make sure there's only 1 h1 tag. Use headings sparingly across the page (Google - in the PDF download).
  • Use title attributes on anchors and alt attributes on images (but only if the image needs a text equivalent for some users).
  • Use rel="nofollow" to direct PR juice to pages you really want them to go to.
  • Keep content unique for each page.
  • Use Google webmaster tools and MSN and Yahoo!'s equivalent.
  • Build, submit and maintain sitemap.xml files.
like image 99
dylanfm Avatar answered Sep 28 '22 04:09

dylanfm


Any page that doesn't have it's content stashed away in Flash or similar is SEO'able. The web crawlers tend to strip everything and read the page as a text stream. Some pay attention to your keywords, their use in the body text, H1 & H2 tags, page title and even domain name but I don't think they are affected by the order of page structure.

like image 35
Lazarus Avatar answered Sep 28 '22 06:09

Lazarus