logo

India's First Software Developer Community

External Css

For add External Stylesheet in Webpage create file with ".css" extension in same folder where u put ur webpage.

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


HTML Page :-

<!DOCTYPE html>
<html>
<head>
<title> Css Installtion | W3CodeIndia </title>
<link rel="stylesheet" href="style.css">
</head>
<body>

<h2> We are testing external css</h2>

<h3 id="blue"> This is Blue color</h3>

<h3 class="type2"> This is yellow color</h3>

</body>
</html>

 

CSS Page :-

h2
{
    color:red;
}

#blue
{
    color:blue;
}

.type2
{
    color:yellow;
}




Subscribe Us :

Chapters :-


Advertisement