HTML Links

Go to main Page

Links in HTML

  1. HTML links are Hyperlinks
  2. If you click on a link it will move to another webpage or document.
  3. A link does not have to be text. A link can be an image or any other HTML element!

HTML Links basic Syntax

<a href="url">link text</a>



<a href="">Click here</a>


Target Links

If we type target _blank than the url will open in new browser.

<a href="" target="_blank"<Click here</a>


Email to link in HTML

If you want to send email to yourself and want to add a link to contact throuh email you will use following code.

<a href="mailto:[email protected]" target="_blank">Click here</a>