Open In App

Screen Reader utilities in bootstrap with Examples

The screen reader utility in Bootstrap helps to restrict an element to the screen readers only. That is by using the screen reader utility we can hide an element in all other devices except for screen readers
The Screen Reader utility also provide an option to display the hidden elements again when focused. For example, when navigated with a key board.
Classes Available in Screen Reader Utility
 

Below examples explains the Screen Reader utilities in Bootstrap: 
 






<!DOCTYPE html>
<html>
<head>
    <title>screen reader</title>
  
</head>
 
<body>
    <h1 class="sr-only">Geeks for geek</h1>
</body>
</html>

class="sr-only  sr-only-focusable" 




<!DOCTYPE html>
<html>
<head>
    <title>screen reader</title>
  
</head>
 
<body>
    <a class="sr-only  sr-only-focusable"
       href="#content">
        Skip to main content
    </a>
</body>
</html>



Supported Browser:


Article Tags :