Survey Form - CSS only reading body or h1 but not both

Tell us what’s happening:
I can’t seem to get just the heading to change colour? I can’t quite figure out what’s wrong, should it go above or below the body section?

It seems that it only reads whatever is second - when body is at the top it won’t read the heading code and vice versa.

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
    <meta charset="UTF-8">
    <title>Registration Form</title>
    <link rel="stylesheet" href="styles.css">


    <h1 id="title"> freeCodeCamp Survey Form </h1>
    <p>Thank you for taking the time to help us improve the platform</p>

/* file: styles.css */
<!DOCTYPE html>
<html lang="en">
    <meta charset="UTF-8">
    <title>Registration Form</title>
    <link rel="stylesheet" href="styles.css" />

  text-align: center;
  font-family: Tahoma;
  width: 100%;
  height: 100vh;
  margin: 0;
  background-color: pink;
  padding-top: 2em;
  font-size: 16px;

h1 {
  color: white;

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge: Survey Form - Build a Survey Form

Link to the challenge:

Deleted my other post because it was wrong. Try deleting the 6 lines of code under the comment in the styles.css file. They should’t be there.

hello and welcome to fcc forum :slight_smile:

  • remove these from “style.css” file, cause it has “html” markers in it

happy learning :slight_smile: