how to turn the words cat photos located inside p element into a link by replacing the words with the anchor element added previously. The p element should show



  <h2>Cat Photos</h2>

  <!-- TODO: Add link to cat photos -->

  <p>Click here to view more cat photos.

<a href="">Cat Photos </a>

  <img src="" alt="A cute orange cat lying on its back.">


replace this with the anchor element. also close the “p” element.

Ending p tag is missing

<p>Click here to view more cat photos.
<a href="">Cat Photos </a> </p>

From what I understood you basically need to cut and paste the anchor tag and it’s content inside p tag (don’t forget closing tags) replacing “cat photos” with it. Or just add the same anchor tag around “cat photos” inside your p tag with the same href as in the anchor tag below. It should look like this:

<p>some text <a href="*the link in here*">cat photos</a></p>

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