Hi everyone,
I’m working on Step 15 of the HTML form challenge, where I need to add a size="20"
attribute to both the name and email input fields. I believe I followed the instructions correctly, but my code is not passing the test.
Hi everyone,
I’m working on Step 15 of the HTML form challenge, where I need to add a size="20"
attribute to both the name and email input fields. I believe I followed the instructions correctly, but my code is not passing the test.
Please post your actual code instead of a picture. Also, please post a link to the step. Thanks
here is my code:
<label for="full-name">Full Name:</label>
<input type="text" id="full-name" name="name" placeholder="Ex. John Doe" required size="20">
<label for="email">Email address (required):</label>
<input type="text" id="email" name="email" placeholder="Ex. johndoe@example.com" required size="20">
And here is my link:https://www.freecodecamp.org/learn/full-stack-developer/workshop-hotel-feedback-form/step-15
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 (').
Adding this is not part of the instructions.
Deleting what was there and replacing it with this was not part of the instructions.
I would reset the step and only do what the instructions ask with zero other changes.
Give the name and email inputs a
size
attribute with a value of"20"
.
can you share me full code to solve the problem
No, I cannot give you the answer to copy. Its against the forum rules and it hurts your learning.
I recommend doing what I said at the bottom of my last post and then sharing your new code if you get stuck.
Your suggestion is not working . Following your suggestion I try it. But it showing this : Sorry, your code does not pass. Hang in there.
You should give the name input
a size
attribute with a value of "20"
.
<input type="text" id="email" name="email" placeholder="Ex. johndoe@example.com" required size="20">
You are still adding code that is not in the instructions. Please reset the step and show me the starting code.
Then only add one attribute to these two elements in the starting code. Add absolutely nothing else.
< You should give the name input
a size
attribute with a value of "20"
.>
it is showing but still don’t understand how to give the name inpute?
Please read my last post and do what I said.
post the starting code
add only those two attributes and nothing else
post your updated code
<label for="full-name">Full Name:</label>
<input type="text" id="full-name" name="name" placeholder="Ex. John Doe" required size="20">
<label for="email">Email address (required):</label>
<input type="text" id="email" name="email" placeholder="Ex. johndoe@example.com" required size="20">
first code is from step 14. Which is showing in step 15
That is not the starting code. Please actually reset the step and then post the starting code.
<input type="text" id="full-name" name="name" placeholder="Ex. John Doe" required>
<label for="email">Email address (required):</label>
<input
placeholder="example@email.com"
required
id="email"
type="email"
name="email"
/>
here is the code
Fantastic. Now try to add only a size
attribute while making zero other changes.
Thank you for your support. It was useful.