WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: heading as child of another heading - valid?

for

From: Tomlins Diane
Date: Mar 30, 2018 1:46PM


Thanks Steve, that helps to understand what the validator is doing there.
I should have thought of just putting in a simple example to check... D'oh!

>> It is a conformance error as per the HTML spec, headings cannot be nested.
If you test a simple case the error is shown. In the case of your example code there is an error in the patent elements that suppresses validation of child elements, which is probably why it does not get flagged.

>> SteveF

Diane R Tomlins
HCA IT&S | Digital Media
Accessibility SME