Search code examples
htmlhref

How to use text itself as hyperlink in HTML?


How to use the text as hyperlink in HTML? Currently I use following line :

<a href="www.google.com"> www.google.com </a>

but I think this is too repetitive. Is there any good approach to this? Is there any other way to tell html that the text itself is hyperlink?


Solution

  • I don't think there is a shortcut. You just have to have the receptiveness, otherwise html won't know it's a link.