Please help me i am new

Tell us what’s happening:

Basic HTML and HTML5: Create a Form Element

You can build web forms that actually submit data to a server using nothing more than pure HTML. You can do this by specifying an action on your form element.

For example:

<form action="/url-where-you-want-to-submit-form-data"></form>

Nest the existing input element inside a form element and assign "https://freecatphotoapp.com/submit-cat-photo" to the action attribute of the form element.

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" placeholder="cat photo URL">
<form action="/url-where-you-want-to-submit-form-data"></form>
</main>

Your browser information:

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

Challenge: Create a Form Element

Link to the challenge:

Hi @mry232959!

Welcome to the forum!

<form>
<input>
</form>

<form action="url goes here">

final result

<form action="url goes here">
<input>
</form>

which place means row
make this, please

I don’t understand your question.

What do you mean by this

<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>

<form action="https://freecatphotoapp.com/submit-cat-photo">

<input>

</form>

  <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" placeholder="cat photo URL">

  <form action="/url-where-you-want-to-submit-form-data"></form>

  </main>

So you are writing this

but the correct way to write it is like I showed above

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

You keep placing the input on top then the opening form tag then the ending form tag.

this is wrong

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

make sense?

@mry232959 as @jwilkins.oboe said have a look on your html structure. You have two inputs and forms in your code you provided. The one close to the end needs to be changed.

1 Like

So I would delete this part at the top

Place this on top of the input

The purpose of this

was to show you the general structure of the form.

I am not allowed to give you the full answer with the correct url in the action attribute and full contents in the input tag.

That was supposed to be a hint not the full solution.

Hopefully that makes more sense.