Forum Moderators: bakedjake
<style type = "text/css">
@media screen
{ body {background-color: #CCC;} }
@media screen and (max-width:1200px)
{ body {background-color: gray;} }
@media screen and (max-width:960px)
{ body {background-color: #F66;} }
@media screen and (max-width:700px)
{ body {background-color: #99F;} }
@media screen and (max-width:480px)
{ body {background-color: #696;} }
</style>
<link rel = "stylesheet" type = "text/css" media = "screen" href = "null.css">
<link rel = "stylesheet" type = "text/css" media = "screen and (max-width:2000px)" href = "one.css">
<link rel = "stylesheet" type = "text/css" media = "screen and (max-width:960px)" href = "two.css">
<link rel = "stylesheet" type = "text/css" media = "screen and (max-width:700px)" href = "three.css">
<link rel = "stylesheet" type = "text/css" media = "screen and (max-width:480px)" href = "four.css">
or even quotes in most cases
The overwhelming problem with user-agent detection is that there are simply so ### many of them. And sometimes a site makes the wrong choice, for example sending an iPad to the version made for iPhones.
Tell it to the validator :P
<!doctype html>
<title></title>
<p class=one>Attributes don't need quotes in most cases</p>
In certain cases, authors may specify the value of an attribute without any quotation marks. The attribute value may only contain letters (a-z and A-Z), digits (0-9), hyphens (ASCII decimal 45), periods (ASCII decimal 46), underscores (ASCII decimal 95), and colons (ASCII decimal 58).