Im having trouble with this code

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

  **Your code so far**

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

<a href="#"><img src="" 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>
<form action=""where-you-want-to-submit-form-data">
  **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 "" 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 =“”>

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.


You wrote this which is incorrect.


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 (\)


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>


Top 3 things cats hate:

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

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