What is the use of href in html | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is the use of href in html

19th Aug 2020, 8:45 AM
Shisui
Shisui - avatar
2 Answers
+ 4
In <a> tag href defines the link destination . In <base> href defines base url for all relative url in the document. In <link> href defines the url of css file.
19th Aug 2020, 8:58 AM
TOLUENE
TOLUENE - avatar
+ 2
Rohan Jha href is an attribute which use with following tags to link other webpages or links to HTML page. Tags are: 1. <a> 2.<link> 3.<base>
19th Aug 2020, 9:15 AM
Himanshu Shah
Himanshu Shah - avatar