Jump to content
Sign in to follow this  
MDooley47

Encourage Proper Heading Structure in Examples

Recommended Posts

As explained by WebAIM, using proper heading tags in the correct order helps provide context and makes websites more accessible. To encourage this accessible practice, it should be mentioned in the <h1> - <h6> section.
Also the example for the <header> tag should be change from 

<article>
  <header>
    <h1>Most important heading here</h1>
    <h3>Less important heading here</h3>
    <p>Some additional information here</p>
  </header>
  <p>Lorem Ipsum dolor set amet....</p>
</article>

to

<article>
  <header>
    <h1>Most important heading here</h1>
    <h2>Less important heading here</h2>
    <p>Some additional information here</p>
  </header>
  <p>Lorem Ipsum dolor set amet....</p>
</article>

 

Share this post


Link to post
Share on other sites

The WebAIM does not state anywhere that skipping heading levels is incorrect.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×