home
NOTE: Under Construction - I'm in the middle of upgrading my site and lots of stuff is kinda broken. Please forgive the mess.

Accessible HTML Tabs For Web Pages

I'm adding tabs to show different examples for a color picker in Neopoligen neo.

I found a video on how to make "CSS only" tabs that looked good but never mentioned accessibility. I checked with folks on a few discords for guidance and learned it's got problems. Specifically, it's not currently possible to make CSS only tabs in an accessible way.

Chris Ferdinandi from Go Make Things gmt and Mayank from mayank.co mayank sent over some better alternatives. Here's Mayank's approach with some specific styles added into the CSS below.

April 2024

This is my local copy of the code for my notes. I've added nothing new here except a few styles. Be sure to visit Mayank's post for the original code and details

Shut the hatch before the waves push it in
═══ § ═══

Endnotes

Footnotes And References