<html>
<body>
<main>
<h1>CatPhotoApp</h1>
<h2>Cat Photos</h2>
<!-- TODO: Add link to cat photos -->
<!-- User Editable Region -->
<p>See more cat photos in our gallery.
<a href="https://freecatphotoapp.com">cat photos</a></p>
<!-- 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.">
</main>
</body>
</html>
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/113.0
Challenge: Learn HTML by Building a Cat Photo App - Step 12
You added the extra text cat photos to the end of the sentence in the p element and made that the link. You don’t want to add any extra text. You want to turn the existing cat photos in the middle of the sentence into a link.
In the text of your p element, turn the words cat photos into a link to https://freecatphotoapp.com by adding opening and closing anchor (a) tags around these words.
Yes, the existing “cat photos” in the middle of the sentence in the p element should be turned into a link by adding opening and closing anchor (a) tags around these words.
Also, don’t move the closing </p> tag or you will not pass.
First, do not remove any text that is already there. I would restart the step to get the original HTML back.
The only thing you are doing in this step is adding an opening and closing a tag. If you make any other changes than this you will not pass.
Look at the opening a tag for the link to cat pictures link you created in a previous step. That’s how your opening a tag should look for the new cat photos link you are creating.
Does your opening a tag have an href attribute with the value https://freecatphotoapp.com?
Look at the link to cat pictures link you already created below the p element. Do you see the href attribute on that opening a tag? That’s what you need on the new one you added.
Also, a tag always begins with < and ends with >. You forgot the > on your opening a tag.