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">
<head>
<meta charset="UTF-8">
<title>Registration Form</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<h1 id="title"> freeCodeCamp Survey Form </h1>
<p>Thank you for taking the time to help us improve the platform</p>
</body>
/* file: styles.css */
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Registration Form</title>
<link rel="stylesheet" href="styles.css" />
body{
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/112.0.0.0 Safari/537.36
Challenge: Survey Form - Build a Survey Form
Link to the challenge: