This forum is now read-only. Please use our new forums at discuss.codecademy.com.

179 points
B7a3102d041e2b9fa1fbc666d2208273?s=140&d=retro
Submitted by
Athul Shibu
almost 3 years ago

How can I turn specific words of my text inside <p> into links?

Example:-

Codecademy is awesome.

What if I wanna link to "https://www.codecademy.com" using the word "Codecademy" ??


0 votes

permalink

check here how to format your code. Your example code is currently not visible. if you update your question please leave a comment so i get a notification.

Well, then you wrap codecademy with the link tags:

<p><a href="https://www.codecademy.com">codecademy</a> is awesome.</p>

2969 points
5ac0e923961bae76e60003bf_9638442
Submitted by
stetim94
almost 3 years ago

2 Comments

B7a3102d041e2b9fa1fbc666d2208273?s=140&d=retro Athul Shibu almost 3 years ago

Thanks a bunch !!!

5ac0e923961bae76e60003bf_9638442 stetim94 almost 3 years ago

you're welcome