Learn HTML Forms by Building a Registration Form - Step 8

Tell us what’s happening:

Hello everyone, kindly walk me through this. Appreciate in advance.

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 {
  width: 100%;
  height: 100vh;
}

/* User Editable Region */

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.1 Safari/605.1.15

Challenge Information:

Learn HTML Forms by Building a Registration Form - Step 8

Why are you making body a class instead of using the element?

1 Like

Because I’m somewhat confused how to make body an element. I tried something else which I’ve attached.

Thats html which you cant use in css. a . in front of the word means its a class, right? Have you tried not including the .

2 Likes

Touche. Now I’ve understood (.) in front of a word means it’s a class, and without (.) means it’s an element.

Gratitude Cody.

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