Home > Software engineering >  Text color doesn't change
Text color doesn't change

Time:01-06

I'm a total beginner at coding and my first problem I can't figure out is that when I use CSS sheet as a change of h1 and h3 color it basically doesn't change.

I tried to set a <h1> text color in CSS sheet and it didn't change.

body {
  background-color: #EEEEEE;
}

h1 {
  color: blue;
}

h3 {
  color: blue;
}

hr {
  border-color: grey;
  border-style: none;
  border-top-style: dotted;
  border-width: 5px;
  width: 5%;
}
<h1>H1</h1>
<hr/>
<h3>H3</h3>


That's my HTML code:

<!DOCTYPE html>
<head>
    <meta charset="UTF-8">
    <title>Kacper's Personal Site            
  • Related