HTML

<link> to an external resource.

Link to external file.


<link> tag is used to specify the relationship between current page and external resource.

External style sheet can be applied to current page using <link> tag.

<link> tag should be inside <head> tag

<link rel="stylesheet" href="externalstyle1.css">

Learning with HTML Editor "Try it Now"

You can edit the HTML code and view the result using online editor.

Example

<!DOCTYPE html>
<html>
<!-- Example: Link Tag -->
<head>
    <title>Page Title here</title>
    <link rel="stylesheet" href="externalstyle1.css">
</head>
<body>
    <h1>Link tag example.</h1>
    <h2>The link tag is used to specify the relationship between current page and external resource.</h2>
    <p>External style sheet can be applied to current page using link tag</p>
</body>
</html>
Try it Now »

Click on the "Try it Now" button to see how it works.