HTML link element
HTML <link> tag links the current document to the other resources. These resources may be CSS sytylesheet or javascript file.
<head>
<link rel="stylesheet" href="files/test.css" />
</head>
</>
We write the URL or address of the external document in the href attribute of link element. link element is usually written inside head element.
Tag omission
It is a self-closing tag (<link />) i.e. there is no end tag.
Global Attributes
All the global attributes are applicable on the link element.
Next Previous
Was this article helpful?