Example ...
HTML:
<hgroup>
<h1>I'm a Title!</h1>
<p class="sh1">It's a subtitle there! :D</p>
</hgroup>
CSS: There I set the styles for headings and subheadings. Note that html5 doesn't support subheadings, so I had the following idea with classes..
h1 { font-size: 2em; } /* default */
h2 { font-size: 1.5em; } /* default */
h3 { font-size: 1.17em; } /* default */ /* default for h4 is .83em; */
:root {
--sh1: 1.75em; /* subheading text size for h1. */
--sh2: 1.335em; /* subheading text size for h2. */
--sh3: 1em; /* subheading for text size h3. */
}
p .sh1 { font-size: var(--sh1); } /* shn means subheading */
p .sh2 { font-size: var(--sh2); } /* it would work like <hn> tag */
p .sh3 { font-size: var(--sh3); } /* it would be great to have <shn> */
So, my question is ...
As you may know, w3c actually doesn't support hgroup
tags, because they were irrelevant. They used to contain several hn headings, and that was considered a bad idea and didn't pass through the w3c recommendation system.
Therefore, my idea is ...
Instead of being a simple container for several hn headings, it would be nice to use hgroup
tags to enclose each hn
headings alongside shn
subheadings right inside that same hgroup! =D
Edit: This is not about asking the w3c to change how the hgroup works, is about asking you if my idea is markup-reliable and respects the w3c system My bad
` for subheadings of the `
` headings, and then I realised that was a bad habit. So I had the idea of creating the classes `.sh1` for `
` elements, meaning subheader for `
`. Then I asked a petition for w3c but I didn't mean this post is about making a social movement to petition for change, I meant if it was correct to use my idea and if it did respect markup syntax logic.
– Jul 05 '18 at 14:07` tags as subheads is *clearly* semantically incorrect; use real header tags, or at least include an ARIA heading role.
– Daniel Beck Jul 05 '18 at 14:33`? <`span`>? thanks for your attention.
– Jul 05 '18 at 15:43