Create Form Element help

Tell us what’s happening:
Im confused as to how to complete this task.

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>

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36.

Challenge: Create a Form Element

Link to the challenge:

A nested element is a tag inside another tag, for example:

<ul>
  <li>cat nip</li>
  <li>laser pointers</li>
  <li>lasagna</li>
</ul>

The <li> elements are nested inside the <ul> tag

What the challenge is saying is you have to place the <input> tag inside a <form> tag, and also the <form> tag has the action property that you have to add.

1 Like

I tried and im still getting it wrong

can you share your code plz

How do i do that. sorry im still really new to all this.

CatPhotoApp

Click here to view more cat photos.

A cute orange cat lying on its back.

Things cats love:

  • cat nip
  • laser pointers
  • lasagna

Top 3 things cats hate:

  1. flea treatment
  2. thunder
  3. other cats
<form action="https://freecatphotoapp.com/submit-cat-photo"

when you reply,

  1. Copy Paste the code that you have in the challenge
  2. Select the code and press the button </> that says preformatted text.
    so it will show all the tags
<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>
<form action="https://freecatphotoapp.com/submit-cat-photo"
 <input type="text" placeholder="cat photo URL">
</form>
</main>

I’ve edited your post for readability. When you enter a code block into a forum post, please 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 (’).

1 Like

the first > is missing in the form
before
<form action="https://freecatphotoapp.com/submit-cat-photo"
after
<form action="https://freecatphotoapp.com/submit-cat-photo">

1 Like

Thank you so much for helping me!! Your a life saver!!

1 Like

glad to help, keep up the good work! :grinning:

Thanks!! and Please dont go to far!! :wink:

1 Like