Learn HTML by Building a Cat Photo App - Step 10

Tell us what’s happening:

Step 10

You can link to another page with the anchor (a) element. For example, <a href='https://freecodecamp.org'></a> would link to freecodecamp.org.

Add an anchor element after the paragraph that links to https://freecatphotoapp.com. At this point, the link won’t show up in the preview.

  **Your code so far**
<html>
<body>
  <h1>CatPhotoApp</h1>
  <main>
    <h2>Cat Photos</h2>
    <!-- TODO: Add link to cat photos -->
    <p>Click here to view more cat photos.</p>
    <a href='https://freecodecamp.org'>Free Code Camp</a>
    <a href="http://freecatphotoapp.com" target="_blank">cat photos</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>

    
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36

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

Link to the challenge:

1 Like

Hi! Welcome to the forum!

This code isn’t needed for the lesson. Using text inside the link comes later.

<a href='https://freecodecamp.org'>Free Code Camp</a>
    <a href="http://freecatphotoapp.com" target="_blank">cat photos</a>

For this lesson you need to make an anchor element with a href that points to https://freecatphotoapp.com/. It does not need text between the opening and closing tags at this stage.

Learning the ABCD of coding and was confused of text between the opening and closing tags. Thanks supports .

Wishing a wonderful journey grow …

Regards