Explain this code please

Tell us what’s happening:

Your code so far

<p>Click here to view more <a href="#">cat photos</a>.</p>

<a href="#"><img src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back."></a>

<p>Things cats love:</p>
  <li>cat nip</li>
  <li>laser pointers</li>
<p>Top 3 things cats hate:</p>
  <li>flea treatment</li>
  <li>other cats</li>
<input type="text" >

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36.

Challenge: Create a Form Element

Link to the challenge:

Hello there.

Do you have a question?

If so, please edit your post to include it in the Tell us what’s happening section.

The more information you give us, the more likely we are to be able to help.

how to nest the form in input element bro?
The existing input element should be nested within a form element.

The concept of “nesting” is introduced in this lesson.


Also don’t mess with the input

This is different then what was given to you in the lesson.

Reset the lesson and leave the input alone.

<form action="https://freecatphotoapp.com/submit-cat-photo"> <input type="text" placeholder="cat photo URL"></form>

This is the way, I have tested it.

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.

1 Like

this was my first discussion here, I am sorry I will abide by the regulations from now on.

1 Like

you can write the starting form tag before input and give it’s action attribute as specified, then you can put the closing form tag after input so that it’s nested within.

1 Like

Hi @aakriti.sharma18!

I think you meant to reply to @yogeshvar.er :grinning: