Use Checkboxes to Optionally Display Elements

InstructorJhey Tompkins

Share this video with your friends

Send Tweet

It's the "Checkbox" hack! This is the key to how we can do things like making CSS toggles. Here, we look at using the :checked pseudo selector with the general sibling combinator to flip the turns of a Tic Tac Toe game.