How to hide elements visually using Tailwind!

I just did this to make my "Skip to Content" button work, this is one of those times where you want to make a section of your website visually hidden, but not absolutely hidden for a screen reader that someone with disability would use to browse your site!

For these type of things, Tailwind's got the class for you! Tailwind's .sr-only class makes the element hidden to your eyes but readily available for screen readers and accessibility tools.

For example, here's how you can add a label for an element, a button or a link containing an icon!

<!-- Adding a label for an H1 logo -->
    <svg><!-- SVG LOGO GOES HERE--></svg>
    <span class="sr-only">The Name of the website</span>

<!-- Adding a label for button with an icon -->
    <svg><!-- ICON GOES HERE --></svg>
    <span class="sr-only">Add new Item</span>

<!-- Adding a label for a link with an icon -->
    <svg><!-- ICON GOES HERE --></svg>
    <span class="sr-only">Link Title</span>