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

How do you set a color on html?

I'm confused.

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

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

  </body>
</html>
styles.css
h1 {
  color: blue;
}

1 Answer

Tarran Prior
PRO
Tarran Prior
Pro Student 2,725 Points

Hello. :)

I assume you are talking about the second part of the challenge, which is changing the h1 element to the color purple. If so, you're going to need to change the property value in the CSS stylesheet named "styles.css".

Simply replace "blue" with "purple" shown below.

h1 {
  color: purple;
}