Step 9: HTML forms help

Please help I am stuck on Step 9: of Learn HTML Forms by Building a Registration Form

https://www.freecodecamp.org/learn/2022/responsive-web-design/#learn-html-forms-by-building-a-registration-form)

I am stuck on Step 9. I change the body background-color but it keeps saying " should add the color within the body element selector"

Please provide the code you have written so far so we can see what’s going on. Thanks!

1 Like

Thanks Jeremy. For styles.css :

body {
  width: 100%;
  height: 100vh;
  margin: 0;
  background-color: #1b1b32;
}

The index.html:

<!DOCTYPE html>
<html>
  <head>
    <title>Registration Form</title>
	  <link rel="stylesheet" type="text/css" href="styles.css" />
  </head>
  <body>
    <h1>Registration Form</h1>
    <p>Please fill out this form with the required information</p>
  </body>
</html>

Is this enough?

2 Likes

So, it looks like you are missing this part:

Then, to see the text, change the color to #f5f6f7 .

When I add a line to the CSS to do this, your code works for me.

Thanks, that is the part where I am stuck. What other line do I have to add

You need to specify color exactly the same way you specified background-color. Same type of line, but with different contents.

2 Likes

Thank you, Its now good.

2 Likes

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.