Learn HTML Forms by Building a Registration Form - Step 10

Tell us what’s happening:
This step wanted me to change the body background color and the text color. I did succeed in changing the background color but not the text color. The only hint it gives me is “You should add the color within the body element selector.” but it is in the body element selector. I’m not sure if the “text-color” is the right thing or not because I don’t exactly know or remember how to change the color of text.

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>Registration Form</h1>
    <p>Please fill out this form with the required information</p>
/* file: styles.css */

/* User Editable Region */

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

/* User Editable Region */

Your browser information:

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

Challenge: Learn HTML Forms by Building a Registration Form - Step 10

Link to the challenge:

text-color is not the correct name. Just color though should work.

1 Like

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