minimum width of different devices in html
snippet in html

minimum width of different devices in html

user4367

body {
  background: white;    
}

@media screen and (min-width: 980px) /* Desktop */ {
  body {
    background: red;
  }
}

@media screen  and (max-width: 979px) /* Tablet */ {
  body {
    background: blue;
  }
}

@media screen and (max-width: 500px) /* Mobile */ {
  body {
    background: green;
  }
}

minimum width of different devices in html

user5728

<meta name="viewport" content="width=device-width,initial-scale=1">