Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

When do i not need to use h1-h6 headers to create emphasised text

Can i use syntax such as

<span class="subheader-uline">My custom emphasised txt</span>

Without contravening accessibility rules (WCAG) I dont intend this custom header to be navigated via screen readers -its purely aesthetic.

I tried to use this syntax and its flagged as illegal in accessibility stating i should use a h1 – h6 tag which i don’t want to do.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

You can try to use the aria-hidden to hide non-interactive content from the accessibility API.

<span class="subheader-uline" aria-hidden="true">My custom emphasised txt</span>
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading