Hi i just started coding please can anyone help me with this

Tell us what’s happening:

Your code so far


<h2>CatPhotoApp</h2>
<main>
<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>
<ul>
  <li>cat nip</li>
  <li>laser pointers</li>
  <li>lasagna</li>
</ul>
<p>Top 3 things cats hate:</p>
<ol>
  <li>flea treatment</li>
  <li>thunder</li>
  <li>other cats</li>
</ol>
 <input type="text"<form< action="/https://freecatphotoapp,com/submit-cat-photo"</form>

</main>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1; 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.

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

the img itself is a link because you set the src attribute, therefore no need to nest the image within the a tag.

i assume that was your question.

welcome to the forum. happy coding!

can you please explain what problem are you facing in your question and then we can help you mate?

thanks but that was not my question . my question was to create a form element.

Can you please describe what you would like help with and what you have tried so far?

my question was to create a form element nested in an input element

Hi @gamer!

Welcome to the forum!

Whenever you post to the forum always try to be as specific as possible with your questions.

For example, you could say “I don’t understand how nesting works”

There are a few issues with your code.

Please reset the lesson and do the following.

Nest the input inside the form

<form action="">
<input>
</form>

Do not mess with the input. Just do the structure like I layed out.

Also do not mess with the url for the action. the one you provided is incorrect. Use the one provided for you in the lesson .

Hope that makes sense.

1 Like

Thank you very much . i understand now