1 artifact
Tap to collapse details
Start by understanding responsive web design (RWD) principles: fluid grids, flexible images, and media queries. Read the MDN guide on Responsive Web Design. Add the essential viewport meta tag to your HTML:
<meta name="viewport" content="width=device-width, initial-scale=1">
Place it in the <head>. Create a basic HTML page with this tag and open it in Chrome DevTools (F12 > Toggle device toolbar) to resize and see scaling.
<head>
❌ Forgetting viewport meta tag causing zoomed-out mobile view
→Always add `<meta name="viewport" content="width=device-width, initial-scale=1">` in `<head>`
❌ Using fixed pixel widths from the start
→Use relative units like % or rem for layouts
Tap to expand details
Spin up a personalized “learn responsive design” plan you can save, check off, and return to anytime — unlimited on the free trial.
freeCodeCamp
by Ethan Marcotte
by Ben Frain
Comprehensive guide with examples and best practices
Core techniques and checklists from Google
Side-by-side device preview for testing responsiveness
Built-in responsive testing with device emulation