What is href tag in HTML? with example

 What is href tag in HTML? 


Href is attribute in HTML and is used for For <a> and <area> elements, the href attribute specifies the URL of the page the link goes to.


For <base> elements, the href attribute 

specifies the base URL for all relative URLs on a page.


For <link> elements, the href attribute specifies the location (URL) of the external resource (most often a style sheet file)



Example of href in HTML


<a href =" ">

Comments

Last 7 Days

How to use referrerpolicy Attribute value ( no-referrer-when-downgrade ) with < iframe > tag in HTML ? with example

Smart contract code for Anyone can send coins to each other without a need for registering with a username and password with help of Ethereum keypair

How to use sandbox attribute value ( allow-popups ) with < iframe > tag in HTML ? with example

How to use < img > tag with usemap attribute in HTML ? with Example