Learn HTML by Building a Cat Photo App - Step 11

Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**
    <h2>Cat Photos</h2>
    <!-- TODO: Add link to cat photos -->
    <p>Click here to view more cat photos.</p>
    <a href="https://freecatphotoapp.com"></a>
    <a href="cat photos"></a>
    <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back.">
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge: Learn HTML by Building a Cat Photo App - Step 11

Link to the challenge:

Let me breakdown the anchor element for you.
We have the opening <a> and closing </a> tags.
To get a better idea of how to add text, I’ll compare it to a p tag.

<p>This is my p element text</p>
<a>link text</a>

It works pretty much the same.
We can add our href="" which is where we add the link we want the user to go to when they click on the link.

<a>link text</a>
<a href="https://www.youtube.com/">link text</a>

That will look like this on the actual page -----> link text

Read over this a good number of times. I hope this helps!

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.