Comprehensive guide to modern HTML and CSS development.
Responsive web design makes your web page look good on all devices (desktops, tablets, and phones).
Always include <meta name="viewport" content="width=device-width, initial-scale=1.0"> in your HTML head.
Media queries allow you to apply different CSS rules based on the size of the screen. The industry standard is Mobile-First Design: you write the default CSS for mobile phones, and use @media (min-width: ...) to add styling for larger screens.
Edit the code below and click Run to see the result live.