body{background-color: red;} is not working in external css

Viewed 30

"this is my external css file of name style.css"

body{
  background-color: red;
}

h3{
  color: #66BFBF;
}

hr{
  border-style: none;
  border-top-style: dotted;
  border-color: grey; 
  border-width: 3px;  
  width: 5%;
}

"And this is my html file of name index.html .in which the style.css linked correctly because hr selector working ,but not others."

<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8">
    <title>Chandan's personal site</title>
    <link rel = "stylesheet" href ="CSS\style.css">
  </head>
  <body>
    <h1>This is me!<h1>
    <hr>
    <h3>Books & Learning</h3>
  </body>
</html>     
0 Answers
Related