Learn HTML Forms by Building a Registration Form - Step 8

How do I code this:
It is time to spruce the project up with some CSS. Begin by giving the body a width of 100% , and a height of 100vh .

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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36

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

Link to the challenge:

Firstly, your selector does not need a dot. When you are directly selecting an HTML element, you need no dot. If you are selecting a class, you add a dot. If you are selecting an id, you add a hash.

Secondly, you need a semi-colon after each of your CSS property values, for instance:
width: 50%;

got right thank you :+1: :+1: :+1: :+1: :+1: :+1:

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