Learn HTML by Building a Cat Photo App - Step 12

Sure!

Let’s say I have this regular anchor text link to fCC as example.fCC:

<a href="example.fCC">link to fCC</a>

The href attribute is used to target the link, right? And whatever comes between the <a></a> tags is what will become a clickable link.

So if you have this example <p> element:

<p>This is a random paragraph!</p>

If you want to turn the word paragraph into a link, you need to surround it with anchor tags, like this:

<p>This is a random <a>paragraph</a>!</p>

It has been anchored! Now just add the href attribute with the destination link:

<p>This is a random <a href="link.example.fCC">paragraph</a>!</p>
1 Like