Learn HTML by Building a Cat Photo App - Step 12

Step 12Passed
In the previous step you turned the words link to cat pictures into a link by placing them between opening and closing anchor (a) tags. You can do the same to words inside of an element, such as a p element.

In the text of your p element, turn the words cat photos into a link to https://freecatphotoapp.com by adding opening and closing anchor (a) tags around these words.

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <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>
      <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.">

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

**Your code so far**
<p>Click here to view more <a href="https://freecatphotoapp.com" >cat photos.</a></p>
      <a href="https://freecatphotoapp.com">link to cat pictures</a>

Test

Sorry, your code does not pass. Hang in there.

Hint

The link’s text should be cat photos. You have either omitted the text or have a typo.

What am I doing wrong?

“cat photos” goes without the dot at the end. Dot is not hyperlinked.

1 Like

I’ve edited your code for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').

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