Learn HTML by Building a Cat Photo App - Step 43

Tell us what’s happening:

Hello all, kindly help me out. I’ve also attached a photo.

Your code so far

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <section>
        <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>
      </section>
      <section>
        <h2>Cat Lists</h2>
        <h3>Things cats love:</h3>
        <ul>
          <li>cat nip</li>
          <li>laser pointers</li>
          <li>lasagna</li>
        </ul>
        <figure>
          <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>  
        </figure>
        <h3>Top 3 things cats hate:</h3>
        <ol>
          <li>flea treatment</li>
          <li>thunder</li>
          <li>other cats</li>
        </ol>
        <figure>
          <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>  
        </figure>
      </section>
      <section>
        <h2>Cat Form</h2>
        <form action="https://freecatphotoapp.com/submit-cat-photo">
          <input type="text" name="catphotourl" placeholder="cat photo URL" required>
          <button>Submit</button>
        </form>
      </section>
    </main>
  </body>
</html>

Your browser information:

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

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 43

@Answer_Alyosha , you are doing well with your progress.
solution: Submit
add a new “type” attribute with a value “submit” on the opening tag of “button” element, and check your code again to see if that works for you.

3 Likes

Here you need to add type attribute and assign its value to submit in the opening button element.

Hope you understand. :v:

2 Likes

gratitude for your reply. I tried It but it didn’t work.

1 Like

aint sure I do but here’s what I done.

Dude you give it a gud trial but here you no need to put **input element** but only button element.

Second then put your type into your starting button tag

<button>
In above tag

Hope you change your code.

2 Likes

Thanks you mean this?

1 Like

Very good you are almost very close :blush:

See you put extra closing tag > remove it and see the magic

:partying_face:

1 Like

@Answer_Alyosha , there is no need to put input element here, remove <input tag and try it again:
Submit
type button open tag <button and after letter “n” give a space and type=“submit” and then close the button opening tag with right angle bracket>.


done but didn’t work.

@Answer_Alyosha , please read instruction carefully before proceeding to answer this question: Do you know what is button opening tag element of this HTML on line 38.
then create a space and put type=“submit” before it right angle bracket(>)that is all you need

1 Like

It worked!!! Really tru


ly appreciate you lot

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