| Viewed 159 times

How to create a hyperlink in html


How to create a hyperlink in html

1 Answer
Mikdam Qandeel
Answered
7

If you want to use a Hyperlink in html you have to use <a> tag.

Example:

<a> I am a Hyperlink Code </a>

Output:

I am a Hyperlink Code

But, we want to direct it for a specific address so we have to use hrefattribute.

Example:

<a href="https://www.qandeelacademy.com/"> I am another Hyperlink Code </a>

Output:

I am another Hyperlink Code