What's the problem here? I tried putting <input> in same line as label text too, but it didn't work

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

   **Your code so far**
/* file: index.html */
<!DOCTYPE html>
   <title>Registration Form</title>
	  <link rel="stylesheet" type="text/css" href="styles.css" />
   <h1>Registration Form</h1>
   <p>Please fill out this form with the required information</p>
   <form action='https://register-demo.freecodecamp.org'>
       <label>Enter Your First Name: 
       <label>Enter Your Last Name: 
       <label>Enter Your Email: 
       <label>Create a New Password: 
/* file: styles.css */
body {
 width: 100%;
 height: 100vh;
 margin: 0;
 background-color: #1b1b32;
	color: #f5f6f7;

label {
	display: block;
	margin: 0.5rem 0;

   **Your browser information:**

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

Challenge: Step 15

Link to the challenge:

When I put the whole label and input on the same line, it passes for me. That’s one line for each of the four label/inputs so six lines in all. Don’t forget the instruction “…and include a space after the colon.”

1 Like

Yes, I got that after few trials. Thanks for the help!

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