Learn HTML Forms by Building a Registration Form - Step 15

Tell us what’s happening:
i did not undrastand what is happening to my form it shows error

   **Your code so far**
/* file: index.html */
<!DOCTYPE html>
   <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>
   <form action='https://register-demo.freecodecamp.org'>
      <label>Enter Your First Name:&nbsp;&nbsp;</label><input type="text" name="fname"></input>
      <label>Enter Your Last Name:</label><input></input>
      <label>Enter Your Email:</label><input></input>
      <label>Create a New Password:</label><input></input>

/* 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/103.0.5060.134 Safari/537.36

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

Link to the challenge:

you need to nest the inputs, that mean you need to put them inside the label element, before the closing </label> tag


the input element is self-closing, that means you shouldn’t write the closing </input> element

you should also delete these

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