Learn HTML Forms by Building a Registration Form - Step 8

Tell us what’s happening:
Please why can’t I still pass this code. They say i should use the ‘body’ element selector, how?

Hint

You should use the body element selector.

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>Registration Form</h1>
    <p>Please fill out this form with the required information</p>
  </body>
</html>
/* file: styles.css */
<body> width="100%"> height="100vh"</body>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0

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

Link to the challenge:

You should use the ‘body’ element as a selector:

element {
property: value;
property: value;
}

This is just an example and not the final solution. There is no angle brackets in css code. Follow the given rule above.

1 Like