Stuck on Step 19 - Registration Form Project

I am stuck on step 19 and unsure what’s wrong with my code. It keeps telling me to give the third “input” element a “type” attribute of “email”, which I think I have. Any insight would be greatly appreciated!

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

It looks like you’ve shared an image instead of code. That significantly decreases how many people can help you.

Please add code text into your forum post, preceded with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').

Sorry about that! Thanks for the heads up!

A lot of code dubugging is like doing those “spot the difference” puzzles from childhood.

These html attributes are assigned correctly:

  • for="first-name"
  • id="first-name"
  • for="last-name"
  • id="last-name"

These ones all have the same error:

  • type:"text"
  • type:"email"
  • type:"password"

Couldn’t fin it? Here’s the answer: You need to use a = instead of a :.

2 Likes

:man_facepalming:
Now I see it.
lol thanks for the help!

2 Likes

Glad to help. Happy coding!

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