Learn HTML Forms by Building a Registration Form - Step 17

I am getting the following error message
You should add the first input after the label text Enter Your First Name: , and include a space after the colon.

Your code so far

<!-- file: index.html -->

<!-- User Editable Region -->

    <link rel="stylesheet" href="styles.css">
        <label>Enter Your First Name: <input type="text" id="first"></label>
        <label>Enter Your Last Name: <input type="text" id="last"></label>
        <label>Enter Your Email: <input type="email" id="email"></label>
        <label>Create a New Password: <input type="password" id="password"></label>

<!-- User Editable Region -->

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

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

Link to the challenge:

It looks like you need to close your input elements. Input is self closing, so a /> at the end of input will work. Hope this helps

<label>Enter Your First Name: <input type="text" id="first"/> </label>
        <label>Enter Your Last Name: <input type="text" id="last"  /> </label>
        <label>Enter Your Email: <input id="email" type="email" /> </label>
        <label>Create a New Password: <input  id="password" type="password"/> </label>

still getting

The challenge never said to give a type to the inputs

You should delete all the input attributes. After the colon, just add space and element.


thanks it worked for me

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