Create forum elements

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>
<input type="text" placeholder="cat photo URL">
</main>

Your browser information:

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

Challenge: Create a Form Element

Link to the challenge:

1 Like

@surajit you need to nest the

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

with form tag

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

You haven’t nest it.

1 Like

Hello @surajit. Looks like you don’t understand this challenge.

The challenge tells you to create a form element. Then, you need to give an action attribute to it with https://freecatphotoapp.com/submit-cat-photo as its value.

After you’ve done that, you need to nest the existing input element inside the form element you’ve just created.

What is nesting?:

<div>
    <p> // this is now nested inside the div.
</div>

In the above code, you can see that the p element is between the opening and closing div tags. When you do so, the p element is nested inside the div element and it becomes a child element of the div. This is the exact same thing you need to do in this challenge. You need to nest the existing input element inside the form element.

Hope you understand!

1 Like

Your Code Should Be

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

thank u so much… @paulsonstech… I understood very well…

2 Likes

Hey @codely. Please don’t share the full solution. Instead, guide the Original Poster (OP) to complete the challenge himself/herself and give hints only. If you share the full code, OP will not learn anything but copy pasting.
Hope you understand!

2 Likes

@paulsonstech
True, Thank you for The Guide

2 Likes

don’t worry i willn’t share it anymore

1 Like