Create a form Element task

** plz i need to know how to …
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">
</main>
<form action="cat photo url><"

Your browser information:

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

Challenge: Create a Form Element

Link to the challenge:

The form element has an opening and closing tag.

Example:

<form action="/url-where-you-want-to-submit-form-data">
  ...input element goes inside here
</form>

see my current code

but was not correct

1 Like

You have an incomplete form element. It also does not have the input element inside it.

This is what you have:

<form action="cat photo url><"

It needs to look like this (click to see):

<form action="use-the-correct-submit-cat-photo-url-here">
  <input type="text" placeholder="cat photo URL">
</form>

If you have updated your code you have to post it so we can see it.

To enter a code block into a forum post precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).

///

hello friend`
`let me try it again`Preformatted text```

///

hello friend`

let me try coding it againPreformatted text

///

hello Friend</p>

let me try coding the challenge again

``` ```

///

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

<p>not correct</p>

This is correct except for the placeholder text. It should URL (all caps), not url.

cat photo URL

///

I got it now</p>

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

///

Thanks alot
plz friends, my next challenge say add submit  button to form
and i responded with this
<button type="submit">Submit</button>

but not correct. kindly assist


please use again the “Ask for help” button to create a new thread for the different challenge