Home HTML CSS JAVASCRIPT BOOTSTRAP Python Docker ML tutorial About us Privacy policy

HTML Links



HTML Links




HTML links are generally use to redirect from one web page to another web page.HTML links are hyper links,which means when user click on the button then immidetly redirect on the next web page.

In HTML we use <a> tag to define links in HTML.

Syntax:
<a href="url"></a>
In the above syntax href attribute is use to hold required url.


target attribute

HTML target attribute is use to define where we nedd to open the required link document.We have multiple ways to do that.
Syntax:
Syntax: <element ="blank|self|parent|top|framename">

_blank

It is open link in a new window.

_same

It is open link in a same window.


_parent

It is open link in parent frame set..



_top

It openss link in a full body of the window.


HTML images as a link

We can also set link as a image as well so that when user click on the image then also redirect on the next web page.

Button as a link

We can also set link as a button so that when user click on the button so we redirect on the next web page.




More Topics