Can someone please help having problem with <form>

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="/submit cat photo"><imput type"text"</form>

</main>
  **Your browser information:**

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 14092.46.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.69 Safari/537.36

Challenge: Create a Form Element

Link to the challenge:

1 Like

Hi @justj !

Welcome to the forum!

There are a few errors so I would reset the lesson.

Here are the first part of the instructions
Nest the existing input element inside a form

This is the input they are talking about

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

You are not supposed to change it.
Wrap your form tags around that.

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

You need to take that url and assign it to the action attribute.

<form action="URL GOES HERE">
EXISTING INPUT GOES HERE
</form>
1 Like

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 url"/> <input type="text" placeholder="cat photo URL">
</form>
</main>
   **Your browser information:**

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 14092.46.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.69 Safari/537.36

Challenge: Create a Form Element

Link to the challenge:

1 Like

This is still wrong

You need to use the exact url from the instructions to pass the test.

2 Likes

ill try it thank you

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