Style is overwritable : Selector priority : Style Basics HTML CSS TUTORIALS


HTML CSS TUTORIALS » Style Basics » Selector priority »

 

Style is overwritable


 

<html>
<head>
<title>Practice</title>
<style>
body {
  font-size: 2em;
}

{
  color: blue;
}

{
  color: red;
}

{
  color: green;
}

{
  color: magenta;
}
</style>
<body>
<p>This is magenta colored text</p>
</body>
</html>

 



HTML code for linking to this page:

Follow Navioo On Twitter

HTML CSS TUTORIALS

 Navioo Style Basics
» Selector priority