html hyperlink

What is a Hyperlink?

It is an association from one net resource to a different one. A link has 2 ends, Associate in Nursing anchor and direction. The link starts at the “source” anchor and points to the “destination” anchor, which can be any net resource like a picture, a video clip, a line, a program, Associate in Nursing markup language document, or a part at intervals Associate in Nursing markup language document.

HTML Link Syntax

HTML using the “a” Tag.

The Target Attribute in HyperLink

_blankThis link opens a new tab.
blankThis link opens a new tab and refreshes the old page.
_selfThis link opens in the same frame.
_parentThis link opens in the parent frame.
_topThis link opens in the full body of the window.


<a href="" target="_blank">open in new tab</a>
<a href="" target="blank">open in new tab & refresh old page</a>
<a href="" target="_self">open in self</a>
<a href="" target="_parent">open in parent</a>
<a href="" target="_top">open in body</a>
open in new tabopen in new tab & refresh old pageopen in selfopen in parentopen in body

Create Download Link in HTML

Create an image Download link here

<a href="03.jpg" download ><img src="03.jpg" alt="thumbnail"></a>

Create Document File Download

example : .txt , .html , .php , .psd ect….

<a href="" download >Text Download </a>
Text Download

NOTE:- This is a Download link only for your online work or only your localhost server working this Download link.

Related Posts

One thought on “HTML Anchor Tag

Leave a Reply

Your email address will not be published. Required fields are marked *