Jump to content

Encourage Proper Heading Structure in Examples


MDooley47

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>

 

Link to comment
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
×
×
  • Create New...