Im having trouble with this code

Tell us what’s happening:
Describe your issue in detail here.

  **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://www.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>
<form action="https://www.freecatphotoapp.com/submit-cat-photo"where-you-want-to-submit-form-data">
</input>
</form>
</main>
  **Your browser information:**

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

Challenge: Create a Form Element

Link to the challenge:

Hi @alvin1191 !

A few issues.
You should reset the lesson.

Nest the existing input element inside a form element

This is the existing input.

  <input type="text" placeholder="cat photo URL">

Do not touch it. Do not alter it.
Wrap your form tags around that.

assign "https://www.freecatphotoapp.com/submit-cat-photo" to the action attribute

You are not supposed to add this extra stuff at the end here

Get rid of this stuff.

Hope that makes sense!

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

I did it and it’s still says the existing input element should be nested within a form element

It would help to see your full code.

Based on what you have shown me so far, you haven’t nested the input inside the form tags.

This is the correct structure.

<form>
<input>
</form>

You wrote this which is incorrect.

<input>
<form>
</form>

Also, make sure to turn off smart quotes.
Programming uses straight quotes like these ""

Also, closing element tags are like this: </h1>. You have to use forward slashes(/) instead of backslashes (\)

CatPhotoApp

Click here to view more cat photos.

A cute orange cat lying on its back.

Things cats love:

<li>cat nip</li>

<li>laser pointers</li>

<li>lasagna</li>

Top 3 things cats hate:

    <li>flea treatment</li>
    
    <li>thunder</li>
    
    <li>other cats</li>
    

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.