logo

India's First Software Developer Community

Inline and Internal CSS

Learn how to add css coding for styling our content in same webpage,

There are two ways to add css coding in same wabpage

They are :

1) Inline css

2) Internal css


  => Inline css
Inline css added to the tag for which we are going to add css with the help of style attribute  


 => Internal css
Internal css added to the head section of the webpage with


<!DOCTYPE html>
<html>
<head>
<title> Css Installtion | W3CodeIndia </title>
<style type="text/css">
h3
{
color:blue;
}
#type2
{
color:#554466;
font-size:30px;
}
.type3
{
color:#000;
font-size:50px;
}
</style>
</head>
<body>

<h2>Inline Css </h2>

<h1 style="color:red;font-size:20px;">This Is inline css </h1>

<hr>

<h2> Internal CSS </h2>
<h3> Tag Selector</h3>

<h4 id="type2"> Id Selector </h4>

<h4 class="type3"> Class Selector </h4>


</body>
</html>




Subscribe Us :

Chapters :-


Advertisement