Menu ▼

Previous Next

<link> :

<link> tag will be used when we need to link an external css file to the current page.

Syntax :

<link rel="Stylesheet" href="location of the style sheet here..." />


Example :

<html>

<head>

    <title>HTML Tutorial</title>

    <link rel="Stylesheet" href="/css/tutorial.css" />

</head>

<body>

    <div class="tutorialsubHeading">

        <q>tutorialsubHeading</q> class applied for this div.

    </div>

    <br />

    <div class="tutorialsideHeading">

        <q>tutorialsideHeading</q> class applied for this div.

    </div>

</body>

</html>


Output :
HTML Tutorial
tutorialsubHeading class applied for this div.

tutorialsideHeading class applied for this div.
Previous Next




Search dotnetlearners.com