Including WordPress official templates, there are a lot of resources explaining how to code "h1" and "h2" wrapping with "header" tag to include a subtitle as "p" tag.
For example,
<main>
<header>
<h1>The Title For The Site</h1>
<p>The subtitle goes here</p>
</header>
...
</main>
Or for an archive page:
<main>
<header>
<h1>The Title For The Site</h1>
<p>The subtitle goes here</p>
</header>
<article>
<header>
<h1>The Title Of An Article</h1>
<p>The subtitle for the article</p>
</header>
...
</article>
...
</main>
So here is the question: What will be for the other levels of h3 to h6 headings if I need subtitles also for those levels?
Is it semantically possible to mark-up like:
<main>
<header>
<h1>The Title For The Site</h1>
<p>The subtitle goes here</p>
</header>
<p>Lorem ipsum dolor sit amet, consectetur ... dignissim.</p>
<header>
<h3>Fusce rutrum</h3>
<p>Vestibulum commodo gravida tortor</p>
</header>
<p>....</p>
<header>
<h4>Praesent eget</h4>
<p> Maecenas malesuada vel lectus</p>
</header>
<p>....</p>
...
</main>
Please give some advise! Thanks in advance.
<p>
is enough, just adjust thefont-size
– Halinahalite