Learn HTML by Building a Cat Photo App - Step 12

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

  **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://freecatphotoapp.com"alt="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/103.0.5060.114 Safari/537.36 Edg/103.0.1264.49

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

Link to the challenge:

The alt attribute is only for images, so you can’t use it on an a tag. Do you remember how you added text for a link in the previous steps? I would restart this step so you get the “cat photos” link below the p element you made in the previous steps. That shows you how to turn the words “cat photos” into a link. Now you just need to do the same thing to the words “cat photos” in the p element.

1 Like

thank you so much for your response