Learn HTML by Building a Cat Photo App - Step 12

Not understanding this one this is what its asking. In the text of your p element, turn the words cat photos into a link to https://freecatphotoapp.com . When you are done, remove the old anchor tag and text below the paragraph.

  **Your code so far**
<html>
<body>
  <h1>CatPhotoApp</h1>
  <main>
    <h2>Cat Photos</h2>
    <!-- TODO: Add link to cat photos -->
    <p>Click here to view more cat photos.</p>
    <a href="https://freecatphotoapp.com">cat photos</a>
    <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/15.3 Safari/605.1.15

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

Link to the challenge:

this is p element

this is it’s text

This is example of turning text into a link:

they are referring to this:

I’m over thinking this now. To create a link for element (p) I plug them all together and add (href="https://). Do I take away or leave a closing tag (/p) ? Then erase element (a)'s link and leave cat photos with a closing tag ?

nope, that seems like unnecessary extra moves

say we have some code, p element

<p>bunch of random text inside the element</p>

I can make a link from any part of this stuff
like here word bunch is a link

<p><a href="URL">bunch</a> of random text inside the element</p>

here words random text is a link


<p>bunch of <a href="URL">random text</a> inside the element</p>

just add anchor element to stuff like in my examples

that’s all, don’t change anything else

1 Like

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