Why it’s important to have a structured document outline

  • document-outline

With HTML5 new document outline algorithm, we have to utilize key aspects when forming our header tags. Even though outline algorithms cannot be relied upon to convey document structure to users, it does create a table of contents that could be used by assistive technology to help the user, or be parsed by search engines to improve search results.

What exactly is the document outlining algorithm?

The document outline is the structure of a document, which is generated by the document’s headings, form titles, table titles, and any other appropriate elements to map out the document. The structure in a web page, whatever lies is between <body> and </body>, is fundamental when presenting a page to the user and structuring your SEO. All content lying inside the <body> element is part of a section such as an <article>, which is where you enter your headings <h1>, <h2>, <h3>, etc., and <p>, paragraph content.

Find out the 5 basic rules to HTML headings!

Get the Formula

Any user agent can apply this information to generate a table of contents. This kind of table of contents could then be used by screen readers and other assistive technologies to a user. The HTML5 specs have clearly defined the outlining algorithm, and when browsers and assistive technologies start adopting it, there will be some major benefits.

How to structure an outline

Let’s start with a sample outline. Imagine you have built a website for a handyman, and he wants a page to advertise the services he is selling. The structure of his page should look something like this:

  1. Handyman for all your home improvement needs! <h1> (document)
    1. Home Repair <h1> (article)
      1. Kitchen and Bathroom plumbing <h2>
        1. Repair plumbing leaks and upgrade old pipes. <h3>
      2. Furniture and Hardwood Repair <h2>
        1. Repair Squeaking hardwood floors and restore broken furniture. <h3>
    2. Indoor and Outdoor Painting <h1> (article)
      1. Paint all types of walls inside and outside your home.<h2>

This is a simple, easy-to-follow list of headings, displayed in a hierarchy that is similar to a table of contents.

This is how the previous outline would be coded:


   <h1>Handyman for all your home improvement needs!</h1>


         <h1>Home Repair</h1>
         <h2>Kitchen and Bathroom plumbing</h2>
         <h3>Repair plumbing leaks and upgrade old pipes.</h3>
         <p>Article content relative to this section.</p>
         <p>A little more article content.</p>
         <h2>Furniture and Hardwood Repair</h2>
	 <h3>Repair Squeaking hardwood floors and restore broken furniture.</h3>
         <p>Some other article content relative to this section</p>

         <h1>Indoor and Outdoor Painting</h1>
         <h2>Paint all types of walls inside and outside your home.</h2>
         <p>Let’s be honest, this is taking ages</p>



Just so you know that I’m not making this up, you should copy and paste the code above into our free outlining tool on StatScraper.com.

There are only two things that affect a Web pages document outline:

  • heading content (h1 to h6 and hgroup),
  • sectioning content (section, article, aside and nav).

This sectioning of content not only affects the HTML5 document outlines but how Google and Users view the your web page. For more information, take a look at our post on the 5 basic rules when use HTML5 headings.

Want Us To Fix Your Site’s Structure For Better SEO?

Get Your Free & Discreet Consultation With Control Square Now!

We’ll reach out to you shortly.