Can someone please help me with my Survey Form
Please post your full code. Thanks
Can you please give me hint on posting the code here. I am find that a bit confusing
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 (').
I can see that you are trying to post code.
If you leave your reply, then @JeremyLT or I can fix it for you
Now that we can see your code, what do you need help with?
When I run your code, I see several tests failing.
So let’s just start with the first one
Failed:Your #number
should have a type
of number
.
Here is the code you wrote for that
<label for="number"><input id="number" type="text" min="18" max="120" placeholder=" Age"/>Age(optional)</label>
You wrote type text but the test is expecting a number input instead
For the next three failing tests here
-
You should have a
label
element with anid
ofname-label
. -
Failed:You should have a
label
element with anid
ofemail-label
. -
Failed:You should have a
label
element with anid
ofnumber-label
.
You have not supplied any of these label elements with an id.
All of these label elements need the correct id to pass
<label for="name"><input id="name" name="name" type="text" placeholder="Full-Name" required/>Enter Name</label>
<label for="email"><input id="email"type="email" type="number" name="email" placeholder="Enter your mail" required/>Enter your Email</label>
<label for="number"><input id="number" type="text" min="18" max="120" placeholder=" Age"/>Age(optional)</label>
oh okay. Thanks
I have lot of failed and i have make lot of research on w3school page to get a hint but, I still end up with the same result
It is common for it take a while to pass the tests for your first project. It is all part of the learning process. We were all there once.
My advice to you is to take it slow and resolve one issue at a time.
Start by fixing the first issue I mentioned for the number input.
Then move onto the next issue.
Then move onto the next failing test.
That is how you will get these tests to pass.
Then if you need help with one, reach out again with the specific tests you are failing and we can help you from there
okay. Let me get back to work. Thanks for the inspiration
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.