HTML link tag

<link> tag in HTML

The <link> tag is used to link external css files with html document.

In the below example we have imported a CSS file by using href, you can see the CSS file content by opening it.

Open the file by clicking the link : http://tutorialcodeplay.com/uploads/tutorial_images/style.css

Example 1 - external css file import using <link> tag

Try Yourself

Example 2 - Without external css file

Try Yourself