You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the header is not valid HTMLBook. It complains about the second <h1>
element h1: Schemas validity error : Element '{http://www.w3.org/1999/xhtml}h1': This element is not expected."
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: