Code: Select all
<body>
<header>
<h1>My stuff</h1>
</header>
<main>
<h1>Main title</h1>
<section>
<div class=my-style>
<h2>hello</h2>
</div>
</section>
</main>
</body>
This warning seems wrong; the DIV seems to hide the <h2> from the validator.No heading element was found as a child of this <section> element. Each section should typically be identified by including a child heading element (<h1>, <h2>, <h3>, etc.).