Learn HTML by Building a Cat Photo App - Step 11

Tell us what’s happening:
Describe your issue in detail here. I have an issue so during the linking process it seems my code is wrong . I need help since I have made soo many changes and it’s still a faail

Your code so far

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
      <p>See more cat photos in our gallery.</p>

<!-- User Editable Region -->

      <a href="https://freecatphotoapp.com">freeCodeCamp.org</a>

<!-- 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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36

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

Link to the challenge:

Add the anchor text link to cat pictures to the anchor element. This will become the link’s text.

Did you read this instruction?

To be honest am sure I did severally but it still refused . could you go through my code

What you have done is to create the text freecodecamp.org and wrap it in anchor.
Wrap the text in the instruction in anchor

could you maybe show me an example of your own maybe. am stuck ,well am a newbie

Everything between the opening and closing tags of an HTML element is its content, and will be displayed on screen when the HTML doc is rendered. So if you want the text ‘show me pics of a dog’ to show on the screen, you might put that in a paragraph element:

<p>show me pics of a dog</p> 

However, if you want to make that text into a link, you would instead use anchor tags. The URL is added as an attribute to the opening tag:

<a href="https://thebestdogpics.com">show me pics of a dog</a>

That whole text will now show as a link which you can click to visit the corresponding web address.

Attributes are always added within the opening tag of the corresponding element. Content goes between the opening and closing tags. Of course, you can also nest elements within elements but that’s not what is called for here… you’ll come to that later.

Thanks so much for the help . I was able to figure it out

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