You can link to another page with the anchor (a) element. For example, <a href='https://freecodecamp.org'></a> would link to freecodecamp.org.
Add an anchor element after the paragraph that links to https://freecatphotoapp.com. At this point, the link won’t show up in the preview.
I’ve tried multiple times to put below the p element and haven’t figured it out yet. I’ve also looked in the forum, I’m feeling pretty stupid right now.
Thanks for any help!
**Your code so far**
<html>
<body>
<h1>CatPhotoApp</h1>
<main>
<h2>Cat Photos</h2>
<a herf='https://freecatphotoapp.com'></a>
<p>Click here to view more cat photos.</p>
<a href='https://freecatphotoapp.com'></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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36
Challenge: Learn HTML by Building a Cat Photo App - Step 10
I looked in the forum and found that I was missing a target attribute. The exercise didn’t mention one, so I’m assuming I would have never figured it out until I learned about that. Since I’m a beginner with no HTML background should I find another HTML resource to help with this program? Thanks!
If you have a question about a specific challenge as it relates to your written code for that challenge, just click the Ask for Help button located on the challenge. It will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.
@Jenn-Meyer
i noticed that code have typo of href. you wrote herf. so it suppose to be href. that is what you have issue… since it said It don’t have href. sorry about you have issue with it for long time