ASHdevelopment / standards

ASH Development Standards
28 stars 13 forks source link

Requiring <section> and <article> elements to have an <h1> element within #154

Open ash-jeremyfield opened 6 years ago

ash-jeremyfield commented 6 years ago

From MDN's documentation regarding section and article,

Each section/article should be identified, typically by including a heading (h1-h6 element) as a child of the section/article element.

Also from MDN regarding defining headings,

The heading elements have a rank given by the number in the element name, where h1 has the highest rank, and h6 has the lowest rank. Relative ranking matters only within a section; the structure of the sections determines the outline, not the heading rank of the sections... Note that the rank of the heading element (in the example h1 for the first top-level section, h2 for the subsection and h3 for the second top-level section) is not important. (Any rank can be used as the heading of an explicitly-defined section, although this practice is not recommended.)

ASH-Michael commented 5 years ago

Present this to CRAFT and supply various scenarios to keep in mind when designing UI Kit for headings in our sites.