Question · HTML and CSS course · Module 9: Modern CSS
Theme Toggle
How is the dark/light theme implemented in the CSS itself in the project?
Answer options
- Through a separate HTML file for each theme
- By overriding CSS variable values under the [data-theme="dark"] selector
- By changing all units from px to rem
- By removing the stylesheet entirely
You can check the correct answer by solving this task in the CodeWorlds game.