What is the main difference between <link> and <a>? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 2

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

HTML tags

25th Mar 2022, 4:54 PM
4 Réponses
+ 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