+ 2

What is the use of link attribute in html

7th Jun 2020, 6:04 AM
Rahul Kumar
Rahul Kumar - avatar
4 odpowiedzi
+ 12
The <link> tag defines the relationship between the current document and an external resource. The <link> tag is most often used to link to external style sheets. The <link> element is an empty element, it contains attributes only.
7th Jun 2020, 7:41 AM
Killú
Killú - avatar
+ 7
It is used in the <head> tag as: <head> <link href="style.css" type="text/css" rel="stylesheet"><link> </head> <link> is used to link css stylesheet with html. Here value of href is the address of the css code
7th Jun 2020, 6:21 AM
ツSampriya😘ツ
ツSampriya😘ツ - avatar
+ 2
Thanks
7th Jun 2020, 6:22 AM
Rahul Kumar
Rahul Kumar - avatar