Tell us what’s happening:
The vh unit stands for viewport height, and is equal to 1% of the height of the viewport. This makes it relative to the viewport height.
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 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36
Challenge Information:
Learn HTML Forms by Building a Registration Form - Step 8