Learn HTML by Building a Cat Photo App - Step 11

Tell us what’s happening:

cat photosclick here to go to freecodecamp.org

it says anchor (a) element should have an opening tag and that the opening tags have this syntax.

Your code so far

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
      <p>Everyone loves cute cats online!</p>

<!-- User Editable Region -->

      <p>cat photos</a href="https://freecatphotoapp.com">click here to go to freecodecamp.org </a> <p>

<!-- User Editable Region -->

      <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/18.1.1 Safari/605.1.15

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 11

Hey, take the forward slash off the opening anchor and run the code again.

Hi there!

You have extra words and a paragraph element around cat photos. Also you didn’t have an opening anchor (a). Your both anchor tags are closing anchor tags. Reset the challenge step and add an opening and closing anchor tags around the words cat photos. Then add href attribute and the required value link to your opening anchor tag.

The instructions is asking you:
Add the anchor text cat photos to the anchor element. This will become the link’s text.

Example

<e attribute="value">your words</e>
1 Like

Hey Buddy, Here first add the extra space after word photos, remove the backward slash

Here remove the extra space after .org and kindly do add / in your p tag

Hope You Understand !!

Hi!

The challenge step is only about to make the words cat photos to clickable link.

1 Like

thanks that helped a lot