HTML Links


In HTML, links are defined with the <a> tag. A hyperlink is an element, a text, or an image that you can click on, and jump to another document.

Example
<a href="sample.html">Click Here</a>
Try it Yourself

HTML Links - target Attribute

The target attribute specifies where to open the linked document.This example will open the linked document in a new browser window or in a new tab

Example
<a href="sample.html" target="_blank">Click Here</a>
Try it Yourself