Learn HTML by Building a Cat Photo App - Step 15

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 <a target="_blank" href="https://freecatphotoapp.com">cat photos</a>.</p>
<a href="https://freecatphotoapp.com"</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 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

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

Link to the challenge:

hi there, I see you posted some code. Did you need help understanding it? (or what was your question?)

i am stuck on this line 15.
can not move forward as its an error on display.
img src=“https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg” alt=“A cute orange cat lying on its back.”

img src= should not be in display

you need to write a proper anchor tag.
An anchor tag has 3 parts.

part 1: the opening tag

  • should start with < and end with > and contain the href attribute
    part 2: the text or element to be linked
  • in this case the img element is becoming the link so it goes here
    part 3: the closing tag
  • the one that looks like </a>

make sure you create the anchor element with all 3 parts, the img must be part 2

thanks again… this is all new to me but looks really intresting.

1 Like

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