Learn HTML Forms by Building a Registration Form - Step 18

i have typed in id as the attributes and for as the attribute as well. the response you give just tells me to type in the other one and neither is correct. You need to give more instructions for html steps, you write a drawn out paragraph explaining a css color and only 1 sentence for html steps. You can do better!

<!-- 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>
    <form method="post" action='https://register-demo.freecodecamp.org'>
        <label for="Enter Your First Name:"><input id="first-name" /></label>
        <label for="Enter Your Last Name:"> <input id="last-name" /></label>
        <label for="Enter Your Email:"> <input id="email"/></label>
        <label for="Create a New Password:"> <input id="new-password"/></label>
/* 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 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

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

Link to the challenge:

This exercise just wanted the id attributes in the input element. Please remove the for attributes and see if that helps.

The values for your “for” attributes should be the same as the corresponding id values. For instance, the first one should just be for=“first-name”, since that’s what the corresponding input id is.
Hope this helps!

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