html hyperlink
Spread the love

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

OptionDescription
_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.

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 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>
thumbnail

Create Document File Download

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

<a href="https://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.



Spread the love

Related Posts

Leave a Reply

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