Light and Dark Switch
HTML / CSS
20 pts
Light and Dark Switch
Ruta’s page has two themes. The light theme is switched on, the dark theme is switched off inside a comment. Swap them:
- Switch on the dark theme, so the body background is #111827, the text #f9fafb and the
h1#fbbf24. - Switch off the light theme by putting it in a comment. Keep its code (the colour
#fffbebmust still be in your CSS). The heading must no longer be underlined.
Careful: comments cannot be nested. A */ inside your new comment would end it too early.
Checklist
- Switch on the dark theme.
- Switch off the light theme, but keep its code in a comment.
🔑 Solution
If you view the solution before passing, you earn half points for this exercise. You still need to type it and press Check to finish.
How it works, step by step
Point at a step to highlight its lines. Type the solution yourself and press Check answer to finish.
