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.

<!doctype html>
    <link href="styles.css" rel="stylesheet">

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

h1 {
  color: blue;

1 Answer

Tarran Prior
Tarran Prior
Pro Student 3,155 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;