<!DOCTYPE html> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
viewport is the area of the window where web content can be seen. This is not always the same size as the rendered page, so the browser usually provides scrollbars for users.width and initial-scale .width controls the size of the viewport, can be in pixels, vh, % or special value like device-widthinitial-scale controls the zoom level when the page is first loaded@media mediaqueries { /* style rules */ }
examples
@media screen { ... }
@media screen and (min-width: 768px) { ... }
@media (min-width: 768px) and (max-width: 1024px) { ... }
@media (color-index)
@media screen and (min-width: 768px), screen and (orientation: portrait), ... {...}
// ,(comma) is like OR
@media not screen and (min-width: 768px) {...}
// this is `not (screen and (min-width: 768px))`