What is the main difference between <link> and <a>? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

What is the main difference between <link> and <a>?

HTML tags

25th Mar 2022, 4:54 PM
4 Answers
+ 7
Link is mostly used for importing stylesheets in HTML. Ex:- <link href="..."> While a is an anchor tag used for redirecting to another webpage, website or somewhere within the page. Ex:- <a href="...">some text to show</a>
25th Mar 2022, 5:17 PM
Chigozie Anyaeji 🇳🇬
Chigozie Anyaeji 🇳🇬 - avatar
+ 5
Link is used in head, a is used in body. Link is used for linking files, a is used for linking another web page or to go to specific location of any webpage.
25th Mar 2022, 5:35 PM
Kashyap Kumar
Kashyap Kumar - avatar
+ 3
Thanks everybody!
25th Mar 2022, 5:48 PM
Thanks bro
31st Mar 2022, 12:01 PM
Ashish Singh
Ashish Singh - avatar