+ 1
I am not understanding of href code please help me understand
3 Answers
+ 6
â
The href is used as attribute in html documents
href attribute can be used with following tags
â <a>
â <area>
â <base>
â <link>
â Usage of href attribute with different tags :
â For <a> and <area> tags : specifies the URL of the page the link goes to.
â For <base> tag : specifies the base URL for all relative URLs on a page.
â For <link> tag : specifies the location (URL) of the external resource [commonly used to embed external style sheets].
+ 2
href is used in html to provide the link or target address/URL where you want to redirect after clicking that word or symbol. It is an attribute of amchor tag.
For example... It can be used with anchor tag like <a href = "www.geeksforgeeks.org">
or it can also redirect to other html page of the same website.
+ 2
Thank you