Skip to content
Related Articles
Open in App
Not now

Related Articles

Tailwind CSS Screen Readers

Improve Article
Save Article
  • Difficulty Level : Hard
  • Last Updated : 22 Mar, 2021
Improve Article
Save Article

This class accepts lots of value in tailwind CSS in which all the properties are covered in class form. This class is used to improving accessibility with screen readers. 

Screen Readers classes:

  • sr-only: This class is used to hide an element visually without hiding it from screen readers
  • not-sr-only: This class is used to undo the sr-only class effect.


<svg class="sr-only|not-sr-only">...</svg>



<!DOCTYPE html> 
    <link href
<body class="text-center"
    <h1 class="text-green-600 text-5xl font-bold"
    <b>Tailwind CSS Screen Readers Class</b
    <div class="bg-green-200 p-4 mx-16 space-y-4"
          <span class="sr-only">sr-only</span>
          <span class="not-sr-only">not-sr-only</span>


screen readers

My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!