Let <small> include subheadings? #929
Comments
I would indeed prefer to be able to use something more expressive for subheadings than Would Are there better alternatives? A new element ( Edit: My perception has changed, please see my comment below. |
I remember this being discussed at length before, but I am not sure where so I cannot even think of where to look for the discussion to link to. |
Having looked into the original bugzilla 22034 issue now (which I should have done before), I see that the suggestion is not so much about allowing
That’s clever and avoids the ambiguity I feared above. It would be in line with the |
The definition of It would be helpful to get a sense of how often developers are using a styled |
I still prefer |
An alternative pattern I often see used: Downside here of course is that because of the limited number of native heading levels, you're "wasting" one level on this. But to me at least that feels a bit more sensible. |
I don't mind allowing the use of
which wouldn't require anything to be changed. The only "issue" I see with the original proposal here is that the sub heading is now part of the In conclusion, I see this as being useful for certain situations, so allowing it is fine in my view. |
Yes, there are cases where a “subheading” is actually part of the heading, e.g. in the movie title
(cf. movie poster) and there are cases where the “subheading” isn’t part of the heading but more like a tagline or something like that, e.g.
This issue is about the former and the suggested markup would look like this:
The latter would be served better with the header element like
where |
The h1/h2 pattern is pretty well-established (example). Perhaps a new grouping element would be useful, something like:
Or maybe something shorter. |
@mattur I'm not sure if you are aware, but there used to be an element almost exactly as you describe in the specification. It was called the http://lists.w3.org/Archives/Public/public-html-admin/2013Apr/0003.html |
@russmaxdesign, he is well aware [snip snip - chaals] |
@prlbr There are examples of patterns for marking up Subheadings, subtitles, alternative titles and taglines in the HTML spec. If there are additional examples you think would be helpful, please provide. |
I always lean on the side of standardization for things like this, especially since there seems to be a good amount of variation in real world implementations. It can bring a lot of clarity to teaching methods [for developers and machine (assistive tech - AT)] and in the end it's shown pretty well that Web Standards have benefitted the end user. Is On the surface, it does seem like |
There is an example for this in the specs using <strong> to do the same but the other way round.
|
@alrdytaken That’s interesting, thanks. I think it’s rather convoluted. Consider this:
The code looks as if “Flowers, Bees, and Honey” is of special importance in this example and “and other things I don’t understand” and “Bears, Salmon and Eggs” are of the same kind, doesn’t it? But that’s not what it is supposed to communicate. It’s supposed to say that “Flowers, Bees, and Honey” and “Bears, Salmon and Eggs” have the same weight in the text, being actual headings, and “and other things I don’t understand” is of lower weight – a light-hearted addition to the heading, as explained in the spec. |
I don’t have suggestions for additional examples at the moment, thanks @stevefaulkner. But it’s good to keep that section in mind, in case the outcome of this issue will be to change something about the |
Thanks all. We're closing this issue on the W3C HTML specification because the W3C and WHATWG are now working together on HTML, and all issues are being discussed on the WHATWG repository. If you filed this issue and you still think it is relevant, please open a new issue on the WHATWG repository and reference this issue (if there is useful information here). Before you open a new issue, please check for existing issues on the WHATWG repository to avoid duplication. If you have questions about this, please open an issue on the W3C HTML WG repository or send an email to public-html@w3.org. |
Imported from bugzilla 22034
Should the
small
element be allowed to carry subheading info of the typehgroup
was meant to allow, such asor
This would require a relatively simple edit to the prose...
The text was updated successfully, but these errors were encountered: