I have a layout that gives me the choice of either:
- including the sidebar within the article tag, even though it's not specific to the article
- having the title outside the article tag
Currently I have the title outside the article tag, but the validator tells me that the itemprop="headline" isn't part of any item.
What would be the best way to structure this? Is there a for
attribute for relating a title with an article?
If you're wondering what type of layout would force me to make this choice, it's a full-width heading section, then article and sidebar below.
Edit
Simplified code
<div class="page-wrap">
<header class="article-header" itemprop="headline">
<h1>This heading section spans the width of the page</h1>
</header>
<div class="content-wrap">
<nav class="submenu">
<p>The submenu is here in the markup so that it appears above the content on mobiles, but it gets pulled to the side on wider screens.</p>
</nav>
<article class="content">
<p>Article content...</p>
</article>
<aside class="sidebar">
<p>This sidebar is not related specifically to the article on the page.</p>
</aside>
</div><!-- .content-wrap -->
</div><!-- .page-wrap -->