Problem face in Survey Form

Can someone help me with this?

This is my Code.

<lable id="name-label" for="name">NAME: </lable>
 <input
          id="name"
          type="text"
          name="name-label"
          placeholder="Enter Your First Name"
          required
        />

You should have an input element with an id of name.
Your#name should have a type of text.
Your #name should require input.
You should have a label element with an id of name-label.

Is your code really just NAME? Your code does not meet any of the requirements you mentioned.

I will not give you the full solution because that’s not the way to learn this stuff. Instead, I will give you some hints:

  • An input element is declared like this: <input>. An id added to an element looks like this: id="xyz". Make sure to change xyz to whatever id you need to add.
  • Add a type of text to an element is done like this: type="text"
  • To make an element required you need to add required="".
  • A label element is declared like this <label for="xyz">XYZ</label>. Make sure to add the id required. Revisit the first hint to see how it is done.

Good luck!

I’ve edited your code for readability. When you enter a code block into a forum post, please precede it 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 (').

It looks like you misspelled label here

and here