The <link> tag defines a link between the current HTML document and an external resource such as a CSS stylesheet. Some key attributes of the <link> tag include href, which specifies the URL of the linked document, and rel, which defines the relationship between the documents. The <link> tag is commonly used to apply CSS styling to an HTML page by linking to an external CSS file.
5. <link> charset Attribute
• <link href="domoarigato.htm" rel="parent"
charset="ISO-2022-JP" />
• Specifies the character encoding of the linked
document
6. HTML <link> href Attribute
• <link rel="stylesheet" type="text/css"
href="theme.css" />
• Specifies the location of the linked document
7. HTML <link> hreflang Attribute
• <link href="domoarigato.htm" rel="parent"
charset="ISO-2022-JP" hreflang="ja" />
• Specifies the language of the text in the linked
document
8. HTML <link> media Attribute
• <head>
<link rel="stylesheet" type="text/css"
href="theme.css" />
<link rel="stylesheet" type="text/css"
href="print.css" media="print"/>
</head>
• Specifies on what device the linked document
will be displayed
9. HTML <link> rel Attribute
• <link rel="stylesheet" type="text/css"
href="theme.css" />
• Specifies the relationship between the current
document and the linked document
10. HTML <link> target Attribute
• <head>
<link rel="parent" href="wildcats.htm"
target="_blank" />
</head>
• Specifies where the linked document is to be
loaded