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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...