×

Html & Html5

The World's best Software Development Study Portal

Internal style sheet


Internal style sheet can be used with the same HTML page inside the <script> tag which must be inside the <head> tag. And within the same page we can include our CSS file.
For example:-


<!DOCTYPE html>

<html>

<head>

<style>

body{

      background-color:pink;

}

p{

      color:red;

      font-size:20px;

}

</style>

</head>

<body>

<p> Let's see here </p>

<p> I am Manish Singh Bhakuni </p>

</body>

</html>


Output of the program



Let's see here


I am Manish Singh Bhakuni

So this is how we can add our inline style in the same page of the HTML one.






CSS 3 training insitute | Best IT Training classes in Gurgaon | Web Designing Training Institute