Frage

I'm using the CynthiaSays.com portal to test my site (martinspoint.org) for accessibility issues, and it keeps reporting that my use of the H1 tag is invalid:

Page does not use headers according to specification.
    https://martinspoint.org/
        Line 192, column 13, H1 element

Nothing I've read in the standards suggests why this implementation is failing, so I've had to guess at the reason, so far with no luck. This site doesn't have a true text header anywhere on the page, so I've had to hide it off to the left to include one (or else you get an failure that your using H2 tags without an H1 tag). I had also tried putting it around the logo, but it failed with the same message.

Any ideas what the scan is looking for mechanically that is causing the failure? It feels like something structural, like where the H1 tag is in relation to the other tags, but it's all just guesswork at this point.

War es hilfreich?

Lösung

Found it - there was an H3 tag hidden up in the login header, and the scan wants the H1 tag to be first. It would be nice if the scan would fail on the placement of the H3 tag instead of the H1 tag, but lesson learned.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top