How <link> tag different from <a> tag ?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How <link> tag different from <a> tag ??

How to use both together....? If possible....

28th Jan 2019, 10:35 AM
Ravi Mishra
Ravi Mishra - avatar
2 Answers
+ 5
<link> is used inside the <head> tag to link other documents (such as stylesheets, scripts etc) to the html document. <a> is user inside the <body> tag and it's used to add to some text/image a link to a specific URL.
28th Jan 2019, 10:56 AM
Alexandru Zmau
Alexandru Zmau - avatar
A link with <link> is used by the HTML document, for importing things like stylesheets. A *hyper*link with <a> takes the user to another webpage when clicked on.
28th Jan 2019, 11:02 AM
James - avatar