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

Option Description
_blank This link opens a new tab.
blank This link opens a new tab and refreshes the old page.
_self This link opens in the same frame.
_parent This link opens in the parent frame.
_top This link opens in the full body of the window.

Example:-

<a href="https://www.myprograming.com/" target="_blank">open in new tab</a>
<a href="https://www.myprograming.com/" target="blank">open in new tab & refresh old page</a>
<a href="https://www.myprograming.com/" target="_self">open in self</a>
<a href="https://www.myprograming.com/" target="_parent">open in parent</a>
<a href="https://www.myprograming.com/" target="_top">open in body</a>
open in new tab open in new tab & refresh old page open in self open in parent open 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>
thumbnail

Create Document File Download

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

<a href="http://www.myprograming.com/wp-content/uploads/2021/05/test.txt" 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 *