3 ms·
You can do that in HTML5 via the <section> and <article> tags. An h1 tag within one of these elements is equivalent to a subheading, and nesting <section> elem
by zozbot234 5y ago
You can do that in HTML5 via the <section> and <article> tags. An h1 tag within one of these elements is equivalent to a subheading, and nesting <section> elements to create a deeper structure is also allowed.
- Klaster_1 5y agoHere's an article on the topic: https://www.smashingmagazine.com/2020/01/html5-article-section/ https://www.smashingmagazine.com/2020/01/html5-article-secti... . Unfortunately, browsers do not support this case properly.
- eyelidlessness 5y agoIIRC this doesn’t actually change the semantic hierarchy of the headings, and e.g. screen readers/reader mode will still treat both h1s as equivalent.