+ 2

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

HTML tags

25th Mar 2022, 4:54 PM
Bekhzodjon
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
Bekhzodjon
0
Thanks bro
31st Mar 2022, 12:01 PM
Ashish Singh
Ashish Singh - avatar