View video tutorial

HTML Hyperlinks


<a> Hyperlinks or Links allows users to move to another page.

Hyperlink is a connection to a destination page.

Users click on a link and jump to a new page.

Link can open on same page, or new page depending on the target attribute value.

Links have different colors when active, visited and unvisited.

Learning with HTML Editor "Try it Now"

You can edit the HTML code and view the result using online editor.


<!DOCTYPE html>
    <title>HTML Hyperlink Example</title>
    <!--Example: Hyperlink-->
    <h1>Heading One</h1>
    <p><a href="" target="_blank">Link opens in a new window</a></p>
    <h1>Heading Two</h1>
    <p><a href="" target="_parent">Link opens in a same window</a></p>

Try it Now »

Click on the "See output" button to see how it works.