LINK <link> Tag

by Jai 11-Jul-19

0 232


The <link> tag is implemented for linking the current document with an outsource document.

As <link> tag is an empty tag, so there is no requirement for using closing tag. It contains only attributes like href, rel, type. While in XHTML, the closing tag (</link>) is required.

Program:

<!DOCTYPE html>
<html>
<head>
<title>Link Tag</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<h1>Example of Link Tag</h1>
<p>Here Link Tag Use In Header</p>
</body>
</html>

Output:

LINK <link> Tag


Share:


Comments

    Waiting for your comments

Leave a Reply