Not sure what I’m doing wrong. Please advise.
The problem:
Step 12
Turn the words cat photos
located inside p
element into a link using the same value for the href
attribute as the link below the p
element. The p
element should show the same text in the browser, but the words cat photos
should now be a link. Make sure to remove the a
element with the text cat photos
on the line below the p
element.
My 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</a>.</p>
<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>