Web page accessibility and h1-h6 headers - should all content be under these tags?

At the top of many pages of our web application, there are error messages and notifications, “Save” and other buttons , and then our h1 tag with the content header. When access to the web application is available, is it always acceptable to have content above the top-level structure tag, as we are here?

+3
source share
5 answers

As a screen reader, I don't like the content above the main headline. I usually navigate through the headers, so I skip the error message. The best solution is to display the h1 header above the error message, and then leave the remaining headers in tact, giving you two h1 headers.

+5
source

Yes (you can put things over them). H simply means "Headline." This is a question regarding the title.

: H2 H1, H3 - H2. , . , , . , . , , . CSS . ? .

CSS, . , . - , .

+2

, , . , , , - , , . , , , , , . , , .

+1

. h1, , ( ). , .

CSS h1, html.

0

, JavaScript. , JavaScript, .

, , , . , CSS "display: none"; ": "; , (, ?) , . , .

, - CSS, . , , CSS / JavaScript , .

0
source

Source: https://habr.com/ru/post/1704127/


All Articles