<html>
<body>
<main>
<h1>CatPhotoApp</h1>
<h2>Cat Photos</h2>
<!-- TODO: Add link to cat photos -->
<!-- User Editable Region -->
<a https://freecatphotoapp.com <a> <p>See more cat photos in our gallery.</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) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36
Challenge: Learn HTML by Building a Cat Photo App - Step 10
Let us take a look at the example provided in the challenge.
<a href='https://freecodecamp.org'></a>
Here the anchor is set to go to https://freecodecamp.org. Additionally an href is used to set the destination of the anchor elements. I believe this answers the question. Reply in the thread if you’re still confused.
@a2937 provided the example of the anchor to help you.
I think the confusion is that, thinking of an anchor, we are looking for something that needs to be anchored.
However, for this step, we are only creating the anchor below the p element statement as the instructions state, and @bbsmooth explained.
If you create the anchor below the p element statement, with nothing but the href in it but the opening and closing tags, you can move on to the next step in your coding journey.