9951 explained code solutions for 126 technologies


htmlUsing viewport tag in HTML


<meta name="viewport" content="width=device-width, initial-scale=1.0">ctrl + c
viewport

define rules for viewport

device-width

will automatically set the width of the page to the device width (critical for mobile devices)

initial-scale=1.0

will not automatically zoom in/out (for mobile devices)