Debugging & Testing
When your layout breaks or colors don't apply, you need to debug. Your primary tool is the browser's Developer Tools (Press F12 or Right-Click > Inspect).
What DevTools allows you to do:
- Inspect Elements: See exactly which HTML tags represent which visual parts of the screen.
- Modify Live CSS: Change colors, add padding, or test grid layouts in real-time in the browser without saving your code.
- Check Specificity: See exactly which CSS rule is winning and which rules are being overridden (crossed out).
- Device Toggle: Simulate mobile phones and tablets to test your responsive media queries.
Try It Yourself
Edit the code below and click Run to see the result live.