HTML Anchor tags Error

Step 12

In the previous step you turned the words link to cat pictures into a link by placing them between opening and closing anchor (a) tags. You can do the same to words inside of an element, such as a p element.

In the text of your p element, turn the words cat photos into a link to https://freecatphotoapp.com by adding opening and closing anchor (a) tags around these words.

My Code

       <p>See more cat photos in our gallery.
      <a href="https://freecatphotoapp.com">cat photos</a>
      </p>

Error

Test

Sorry, your code does not pass. Try again.

Hint

After nesting the anchor (a) element, the only p element content visible in the browser should be See more cat photos in our gallery. Double check the text, spacing, or punctuation of both the p and nested anchor element.

I have edited your post to make your code legible. If you need to post code on the forum, please enclose it between two sets of triple backticks. You can do this manually or use the Preformatted Text tool (</> icon or CTRL+e) to create the backticks for you.

What you have done is duplicate the text ‘cat photos’ rather than turning the existing text into a link.

Here’s an example of how to turn a portion of text into a link:

<!-- text without link -->
<p>Please visit my website for awesome content.</p>

<!-- 'my website' turned into a link -->
<p>Please visit <a href="example.com">my website</a> for awesome content.</p>

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