HTML Introduction to HTML and CSS Getting Familiar with HTML and CSS Test: Changing the Look of a Web Page

Change the color of the h1 tag to purple.

Change the color of the h1 tag to purple.

index.html
<!doctype html>
<html>
  <head>
    <link href="styles.css" ref="stylesheet">
  </head>
  <body>

    <h1>Welcome to My Web Page!</h1>

  </body>
</html>
styles.css
h1 { 
background-color:blue;
}
hi {
  color:purple;
}

1 Answer

Berian Lowe
Berian Lowe
15,439 Points

You don't need to add another css selector. You just need to replace 'blue' with 'purple'.

h1 {
  color: purple;
}