Learn HTML Forms by Building a Registration Form - Step 8

Tell us what’s happening:
Describe your issue in detail here.


I can’t figure out what’s wrong with my code. It says Begin by giving the body a width of 100% , and a height of 100vh . I wrote:
.body {
width: 100%;
height: 100vh;

  **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 */
.body {
width: 100%;
height: 100vh;
  **Your browser information:**

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

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

Link to the challenge:

Hello there and welcome to the forum!

Please Tell us what’s happening in your own words.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more information you give us, the more likely we are to be able to help.

.body {
width: 100%;
height: 100vh;

Hey! Everything looks good! But I believe in your CSS it should be body as the selector not .body - Remove the period in front of body and see if that helps! (:

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