Inside the form element, I am required to enter my name in a field with id="name"

im a little stuck on this one. ive tried as many ways as i can think of but nothing is working so i feel im probably miles off. help please?!

link attached below;
https://codepen.io/adamsmith1990/pen/RXxvLQ

just a thought, the link may not be much use because i deleted my attempts. just looking for advice

@adamsmith1990 You want to use the HTML input tag like so:

<input type="text" id="name"/>

Take a look at mine if it helps you out: https://codepen.io/kwxza/pen/orKmBB?editors=1000

1 Like

thank you for your message. no luck yet unfortunately. ive attached a link to show my progress, am i getting nearer?

https://codepen.io/adamsmith1990/pen/RXxvLQ

As I can see your input field is not active and thats why:

<form id="survey-form">
  <input type="text" id="name" placeholder="placeholder">
</form> 
1 Like

thank you for your message. it definitely looks better now a box has appeared. im still having the same error show up-
"Inside the form element, I am required to enter my name in a field with id="name""

ive attached a link below showing my progress, am i getting nearer?
https://codepen.io/adamsmith1990/pen/RXxvLQ

If you wanna get a little bit more information about input fields and html attributes read this article about it: https://www.w3schools.com/tags/att_input_name.asp good luck! @adamsmith1990

<form id="name" name="name">
     <input type="text" id="name" name="name" />
</form>

@adamsmith1990

You have to make sure you close all your HTML tags.
Right now you have

<input type="text" id="name" placeholder="placeholder"

You need the closing /> at the end. The input tag is a self-closing tag so you don’t use </input>.

1 Like

@adamsmith1990
Also, instead of running all the tests right now, I would first focus on putting in the overall structure of the HTML - i.e. all the elements that you want to appear on the page.
Check out the MDN doc page about the input tag: The Input (Form Input) element.

thanks for all your help. is it possible that “required” part is a hint? i remember vaguely doing something on that in the training… making it a required field or something?
https://codepen.io/adamsmith1990/pen/RXxvLQ?editors=1000

got it! it was the “required” part that needed adding. thank you for all your help everyone!