I’m trying to make the words “cat photo” as a link but I can’t seem to catch what I’m doing wrong 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 <a href="https://freecatphotoapp.com">cat photos.</p>
<a href="https://freecatphotoapp.com">link to cat pictures</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 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.0 Safari/605.1.15
Challenge: Learn HTML by Building a Cat Photo App - Step 12
You are close and there are a few ways to do this. You could change the text on the <a> tag potentially but that may not satisfy the instructions fully.
You might want to look at wrapping the <a> tags around the tag you currently have written ‘cat photos’ under. The parent-child relationship of elements will extend the ‘clickability’ of the <a> tag onto the <h> tag since the <h2> would be a child of <a>.
Yes this was it! I actually removed the period altogether and it worked. But I went back and added the anchor before the period. That was driving me crazy. Thank you!