Open dac514 opened 6 years ago
div is not a new container element. The spec says this about div:
Authors are strongly encouraged to view the div element as an element of last resort, for when no other element is suitable. Use of more appropriate elements instead of the div element leads to better accessibility for readers and easier maintainability for authors.
Maybe change it to section, aside or article if you have a choice.
We hope to start using HTMLBook in a WordPress application where everything in between
<div class="content">
tags is generated by WordPress.This document is valid HTML5:
(Tested here: https://html5.validator.nu/)
The same document with an extra:
In the header is not valid HTMLBook. It complains about the second
<h1>
I understand why it is invalid in HTMLBook but... the HTML5 spec "encourages" authors to use "headings of the appropriate rank" instead of h1 everywhere. An encouragement is not a normative requirement.
Is there something we can do to loosen the headings validation between a given div tag?