Using <a> </a> elements- Step 12

Tell us what’s happening:
I put a comment in the code. Can’t figure out what i’m doing wrong with the a element. Help says Href has lost it’s value.

Your code so far

      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
      <p>Click here to view more cat photos.<a href="https:/"> cat photos </a> 
      </p> <!-- Can't figure out what i'm missing with the a element? Does the first <a> need to be opened or closed? the examples show both versions. Help keeps saying the Href has no value. -->
      <a href="">cat photos</a>
      <img src="" alt="A cute orange cat lying on its back.">

Your browser information:

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

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

Link to the challenge:

You added an extra “cat photos” to the sentence in the p element. You don’t want to add any extra text. You want to turn the words “cat photos” that are already there into a link.

I don’t understand where, it still just says that i have omitted Href value

1 Like

Look in the preview pane? Do you see two “cat photos” at the end of the sentence? One isn’t a link and one is. You only want one “cat photos” at the end of the sentence and it should be a link.

hello and welcome to fcc forum :slight_smile:

do you see repetition of “cat photos” here?!

now lets read from instructions, shall we?

In the text of your p element, turn the words cat photos into a link

now do you see what needs to be done and how you can “address” that in your code? if not feel free to share your attempted code and further questions, happy learning :slight_smile:


Cat Photos

Click here to view more cat photos. cat photos

I have been at this for days and can’t figure it out. it’s been weeks and i can only make it to step 12. No I do not understand. There is no actual help in the hints

Hi there,

Here is a post I wrote about how to create a link inside a paragraph element.

See if this helps

1 Like

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