Link Tag in HTML || HTML Link Tag
×

HTML LINK <link> Tag

0 1279

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

As <link> tag is an empty tag, so there is no requirement for using the 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:




Share:


Leave a Reply


Comments
    Waiting for your comments