Learn HTML by Building a Cat Photo App - Step 12

Tell us what’s happening:

Describe your issue in detail here.
it keeps saying error and that i need to add href attribute

Your code so far

      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->

<!-- User Editable Region -->

      <p>See more <a cat photos></a> in our gallery.<p>
      <a href="https://freecatphotoapp.com"> to cat pictures"</a>`

<!-- User Editable Region -->

      <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back.">

Your browser information:

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

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 12

You appear to have created this post without editing the template. Please edit your post to 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!

Welcome to the forum @omauria0503 !
This is what you need to do in step 12: turn the words cat photos into a link by adding opening and closing anchor (a) tags around these words. Then set the href attribute to https://freecatphotoapp.com.

To explain it further, the text ‘cat photos’ should be in-between the opening (<a>) and closing (</a>) anchor tag, not inside the opening (<a>) tag. Secondly, what needs to actually go inside the opening anchor (<a>) tag is the href attribute that you have also used in the line below. This is how the code should look:

<!DOCTYPE html>

Ignore the first line of my code (i.e. !DOCTYPE html) for now. Happy coding!

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.


Oh okay, my bad! I’ll keep that in mind, if and when I get a chance to be of help to someone else again. Thanks for informing :slight_smile: