25. What is the purpose of the viewport meta tag?

The viewport meta tag controls how the layout viewport is configured on mobile browsers. A common configuration is width=device-width, initial-scale=1.0, which helps pages use the device viewport appropriately.

Key Takeaways
  • Viewport configuration is important for responsive pages.
  • Responsive design also requires appropriate CSS.
Knowledge Check

Which value is commonly used for responsive viewport configuration?