Can any one help me with this almost done with HTML-CSS

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

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.1 Safari/605.1.15.

Challenge: Create a Form Element

Link to the challenge:

you are missing the closing form tag

2 Likes

Do you mean at the end of the thing I tried it doesn’t seem to work can you be more clarifying thank you

most elemenents need an opening and a closing tag, the form element is one of those, you need an opening <form> tag and a closing </form>, you do not have the closing tag

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

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.1 Safari/605.1.15.

Challenge: Create a Form Element

Link to the challenge:

It looks like you accidentally created a new topic instead of replying to this topic. Please do not create duplicate topics for the same challenge/project question(s). This duplicate topic has been combined with this topic.

Thank you.

1 Like

hey it dosent seem to work I tagged you In the text which I just showed you the programing you showed

you also need to put the required attribute inside the opening form tag, and the input inside the form element

1 Like

Hey is there any way you can show me because I really don’t understand

The instructions say

Nest your text field inside a form element, and add the action="/submit-cat-photo" attribute to the form element.

So, the challenge is looking for the text input to be nested inside the form, like this:

<parent tag>
  <nested tag>
</parent tag>
1 Like
First, you need to put the attribute (action) inside the form opening tag second, the (input) tag should be inside the form because it is a part of it :slight_smile:
1 Like