Problem Statement
Explain the importance of the viewport meta tag for responsive design.
Explanation
The viewport meta tag controls how a webpage scales and displays on different devices. By setting width=device-width and an appropriate initial-scale, the layout adapts to the screen size, ensuring readable text and proper element proportions. Without it, pages may appear zoomed out or broken on mobile. It is essential for responsive and mobile-friendly design.
Code Solution
SolutionRead Only
<meta name="viewport" content="width=device-width, initial-scale=1.0">
