Challenge #005 - Tabs

- Takes about 2 minutes to complete

Tabs! So many websites have them and so many create an accessibility nightmare, but friends, that will change with this challenge and its subsequent solution.

This challenge is free to participate, but the solution to the challenge will be for paying members only, so subscribe to see the upcoming solution.

What you’re building

Demo shows tabbed interface. The user clicks the second tab, “Specifications”, which selects it. The user then resets back to the default tab.

The brief

Take the design assets and build and these tabs with whatever front-end technology you want.

Make sure that your challenge solution does the following as a minimum:

  • Uses semantic elements
  • Is usable with mouse, touch and keyboard

Bonus points awarded if:

  • Your solution is usable without JavaScript enabled
  • Your solution is lightweight and performant
  • Your solution is fully accessible and uses appropriate aria attributes
  • You create appropriate transitions and/or animations between states


I’ve used Figma to design this challenge and you can run it with a completely free account!

Here’s some assets to get you going:

Here are some CSS Custom Properties for your colours:

:root {
  --color-light: #f3f3f3;
  --color-mid: #dedede;
  --color-dark: #313e4f;
  --color-slate: #444444;
  --color-inactive: #4f637d;
  --color-primary: #2a7bd6;


This challenge is for you to learn and if you want to just want keep it to yourself, that’s all good. If you want to share it with the Front-End Challenge Club Community, tweet a publicly accessible link, using the hashtag: #FrontEndChallengesClub or directly to @FEChallengeClub and I’ll pick up and link to my favourite in my solution post.

Wrapping up

Enjoy this challenge and remember: we’re all in this together, so if folks have questions, tweet using the hashtag #FrontEndChallengesClub or tweet directly to @FEChallengeClub.

Only paying members get to see my solution to this challenge, so make sure you subscribe to a paid plan.

See you at the next one 👋

Other challenges

  1. #006 - Auto-scrolling, responsive grid

  2. #004 - Progress Button

  3. #003 - Duotone Card

  4. #002 - Toggle switch

  5. #001 - Email sign-up form

Sign up for a membership

Front-End Challenges club members get all sorts of benefits, including:

  • Full access to all content
  • Access to a private community of other members
  • Access to exclusive AMA sessions

Membership starts at $10 per month or $95 per year.

Sign Up For A Membership