Need Help For Survey Form getting error for #10,#11 and for html validation error for name input,but i have placed it
Hi @nisha.dhole28. Welcome to FCC.
You didn’t follow some of the instructions.
- You are supposed to use
labelelements instead of
<label for="name">Name<label/> <input type="text" id='name' class="form-control" name="name" placeholder="Enter your name" required><br>
In fact if you replace your first
input element in the form with the above, you will eliminate the first error.
- Your first input element should have an id of
Welcome to the forum!
I agree with @nibble.
I think you used p tags probably because it was easier to get everything on a seperate line since p tags are block level elements.
But if you just set the labels to
display:block; then you can achieve the same results. Also avoid br tags. Use CSS instead.
yes I did the changes and its working now .thank you for your help.