+ 1
I am not understanding of href code please help me understand
3 odpowiedzi
+ 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