WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: heading as child of another heading - valid?

for

From: Bourne, Sarah (MASSIT)
Date: Mar 30, 2018 12:51PM


H tags are block elements, which cannot contain other block elements. I don't know why it wasn't flagged by Nu. How AT would handle this would depend on how a particular browser handles the error. Ignore the H4, because it has no actual content itself? Ignore the H2, because it's not allowed inside of an H4?

(And what's up with those heading levels? Should it actually be an H2, or an H4? Or H-something-else-entirely?)

Is it possible that that markup is modified by scripting, so that's not what Nu saw?

sb
Sarah E. Bourne
Director of IT Accessibility
Executive Office of Technology Services and Security (EOTSS)
1 Ashburton Place, 8th Floor, Boston, MA 02108
Office: (617) 626-4502
<EMAIL REMOVED> | www.mass.gov/eotss