Learn HTML Forms by Building a Registration Form - Step 8

Tell us what’s happening:

what seems to be the problem in my code? what does it mean to 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 */

/* User Editable Region */

<body>
.body {
  width: 100%;
  height: 100vh;
}
</body>

/* 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/136.0.0.0 Safari/537.36 Edg/136.0.0.0

Challenge Information:

Learn HTML Forms by Building a Registration Form - Step 8

Please remove the markup tags…a CSS file has no HTML elements.

Basic selectors follow this pattern:
An element selector looks like: h1 { color: blue; }
A class selector looks like: .myClass { color: red; }
An id selector looks like: #myId { color: brown; }

1 Like

Body element selector, they mean a selector to target the body element. It’s just the word body in lowercase followed by the curly braces.

1 Like