Learn HTML by Building a Cat Photo App - Step 42

Tell us what’s happening:
Describe your issue in detail here.

Your code so far

        <h2>Cat Photos</h2>
        <!-- TODO: Add link to cat photos -->
        <p>See more <a target="_blank" href="https://freecatphotoapp.com">cat photos</a> in our gallery.</p>
        <a href="https://freecatphotoapp.com"><img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back."></a>
        <h2>Cat Lists</h2>
        <h3>Things cats love:</h3>
          <li>cat nip</li>
          <li>laser pointers</li>
          <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/lasagna.jpg" alt="A slice of lasagna on a plate.">
          <figcaption>Cats <em>love</em> lasagna.</figcaption>  
        <h3>Top 3 things cats hate:</h3>
          <li>flea treatment</li>
          <li>other cats</li>
          <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/cats.jpg" alt="Five cats looking around a field.">
          <figcaption>Cats <strong>hate</strong> other cats.</figcaption>  
        <h2>Cat Form</h2>
        <form action="https://freecatphotoapp.com/submit-cat-photo">

<!-- User Editable Region -->

          <input type="text" name="catphotourl" placeholder="cat photo URL" required>

<!-- User Editable Region -->


Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge: Learn HTML by Building a Cat Photo App - Step 42

Link to the challenge:

Please Tell us what’s happening in your own words.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more you say, the more we can help!

Appreciated your reply. i want to know how to put action attribute into botton element. Furthermore, is there any way i can check the correct answer right away without asking anyone? it is kind of too basic to ask.

Asking questions is part of the coding progress. First, we dont just give answers on the forum and if there is an answer the mods will remove it when we see it. You’re not going to learn if the answers are just provided to you. Asking questions, and woring out the problem is the best way you can improve your coding

Now, for the challenge the instructions say

" Add a button element with the text Submit below the input element."

This is what you need to do in order to pass the challenge, but the following part:

“The default behavior of clicking a form button without any attributes submits the form to the location specified in the form’s action attribute.”

This is just describing the behavior of the button with the form. You do not need to be adding an action attribute anywhere in this challenge. Only do the top part

You misspelled button here. Also look at the instructions or the top part I provided in my post. Your text submit should match 100% to what the directions tell you. Right now it does not

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.