Home > Mobile >  Can't solve the exercise in FreeCodeCamp.org Step 12
Can't solve the exercise in FreeCodeCamp.org Step 12

Time:06-14

In the exercise of freecodecamp.org I am trying to complete step 12 im html. You need to link words in a paragraph, but only the words "cat photos". I can't find the mistake but it would be nice if someone would describe the mistake and show it to me. Here's the code:

´´´
<html>
  <body>
    <h1>CatPhotoApp</h1>
    <main>
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
      <p>Click here to view more <a href="https://freecatphotoapp.com">cat photos.</p>
      <a href="https://freecatphotoapp.com"></a>
      <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back.">
    </main>
  </body>
</html>
´´´

CodePudding user response:

It looks like you opened a second anchor tag instead of closing your first one.

<html>
  <body>
    <h1>CatPhotoApp</h1>
    <main>
      <h2>Cat Photos</h2>
      <p>Click here to view more <a href="https://freecatphotoapp.com">cat photos</a>.</p>
      <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back.">
    </main>
  </body>
</html>

CodePudding user response:

Thank you to everyone who tried to help me. For the right answer, we just needed to remove the dot that was at the end of cat photos. Thank you Scott for helping me out:).

  •  Tags:  
  • html
  • Related