This is how we nest input elements inside form
tag,
<form action="/some/url">
<input type="text">
</form>
This is how we nest input elements inside form
tag,
<form action="/some/url">
<input type="text">
</form>
<form action="https://freecatphotoapp.com/submit-cat-photo">
<input type="text" placeholder="cat photo URL">
</form>
HTML is like a tree. Add input
element between <form></form>
.
Place the <input>
tag between the <form>
and </form>
tags, instead of inside the opening tag <form>
.
Like this:
<form action="https://freecatphotoapp.com/submit-cat-photo">
<input type="text" placeholder="cat photo URL">
</form>
I’m a beginner in HTML, and am learning more about it using freeCodeCamp. However there’s this one question I can’t get past. The question requires me to nest an input text type element inside a form element, but gives me an error even though I’m pretty sure that I wrote my code correctly. Could anyone possibly review it for me? Picture attached, HTML 5:
your code is wrong .
Please do not post images of code — paste the code into the question, preferably as a
Nesting doesn’t mean joining two tags to a single tag. It means place another element inside an element while keeping them seperate Make the line as
You’re welcome! As you are a new contributor, just a suggestion, you can always mark the answer right if the answer helped you or upvote it if you think it was meaningful to you while solving the problem. Have a great time.