I would like to know if my chosen layout is HTML5 standards compliant, or if I'm using the heading tags incorrectly (or any other tag for that matter)?
Main Header
<h1>
for website name<h2>
for webpage name<h3>
for website slogan, or should this be<span>
with styling?
Main Content/Sidebar Content
<h2>
for every first heading in each<section>
element (because a level 1 heading is too large), or should this really be<h1>
with specific styling; e.g..panel-ws section h1
?.first
removes unwanted top margin..panel-ws
adds whitespace (padding).
Example Code Extracts (OLD; Updated Below!)
<header id="page-header" role="banner">
<div id="logo"></div>
<div id="header-text">
<h1>Website Name</h1>
<h2>Page Title</h2>
<h3>Slogan</h3>
</div>
</header>
<main id="content" role="main">
<div class="panel-ws">
<section id="name1">
<h2 class="first">Content 1</h2>
<p>Lorem ipsum...</p>
<p>Lorem ipsum...</p>
</section>
<section id="name2">
<h2>Content 2</h2>
<p>Lorem ipsum...</p>
<p>Lorem ipsum...</p>
</section>
<section id="name3">
<h2>Content 3</h2>
<p>Lorem ipsum...</p>
<p>Lorem ipsum...</p>
</section>
</div>
</main>
<aside id="sidebar" role="complementary">
<div class="panel-ws">
<section id="sidename1">
<h2 class="first">Side content 1</h2>
<p>Lorem ipsum...</p>
<p>Lorem ipsum...</p>
</section>
<section id="sidename2">
<h2>Side content 2</h2>
<p>Lorem ipsum...</p>
<p>Lorem ipsum...</p>
</section>
</div>
</aside>
#header-text h1
#header-text h2
#header-text h3
.panel-ws section h2
.first
Example Code Extracts (UPDATED!)
<header id="page-header" role="banner">
<div id="logo"></div>
<div id="header-text">
<h1>Website Name</h1>
<p>Slogan</p>
</div>
</header>
<main id="content" role="main">
<div class="panel-ws">
<header id="page-title-container">
<h1 id="page-title">Page Title</h1>
</header>
<section id="name1">
<h1>Content 1</h1>
<p>Lorem ipsum...</p>
<p>Lorem ipsum...</p>
</section>
<section id="name2">
<h1>Content 2</h1>
<p>Lorem ipsum...</p>
<p>Lorem ipsum...</p>
</section>
<section id="name3">
<h1>Content 3</h1>
<p>Lorem ipsum...</p>
<p>Lorem ipsum...</p>
</section>
</div>
</main>
<aside id="sidebar" role="complementary">
<div class="panel-ws">
<section id="sidename1">
<h1>Related Content 1</h1>
<p>Lorem ipsum...</p>
<p>Lorem ipsum...</p>
</section>
<section id="sidename2">
<h1>Related Content 2</h1>
<p>Lorem ipsum...</p>
<p>Lorem ipsum...</p>
</section>
</div>
</aside>
#header-text h1
#header-text p
.panel-ws #page-title-container #page-title
.panel-ws section h1
.panel-ws section h2
.panel-ws section h3