catphotoapp <form=action="/submit-cat-photo"><input type="text" placeholder="cat

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>
photo URL">
<input>
</form>
</input>
</main>
  **Your browser information:**

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

Challenge: Create a Form Element

Link to the challenge:

Hi, the challenge asks you to nest elements, for example:

<div id="div1">
   <div id="div2">
   </div>
</div>

In the example above we say that #div2 is nested in #div1.

The challenge itself also provides a helpful example on what it wants you to do with <form> and <input> elements.

replace everything below

with

Basically this tutorial teaches you to always place inside of a .

Key thing to remember if your isn’t inside of a then it’s not coded to standard.

to summarize, element collects data from the user, element organizes all that data, and the action="" attribute, on the element tells the program where you want that data to be sent.

basically this tutorial teaches you to always place inputs inside of a form element.

key thing to remember if your input isn’t inside of a form element, then it’s not coded to standard.

to summarize, an “input” element collects data from the user, the “form” element organizes all that data, and the “action=”" " attribute on the “form” element tells the program where you want that data to be sent.

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

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