INTERNAL CSS
Internal css write within head tag . All internal css work properly inside the head tag.
When you use internal css in your page you do not need to create another external css file
Internal css formate
<head>
<style>
body{
margin:0;
padding:0;
}
</style>
</head>
Example of internal css
<style type="text/css">
h1{
color:red;
font-family:cursive;
}
p{
color:white;
background-color:black;
}
</style>
J
Write code in your editor
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Internal css</title>
<style type="text/css">
h1{
color:red;
font-family:cursive;
}
p{
color:white;
background-color:black;
}
</style>
</head>
<body>
<h1>This is h1 heading tag</h1>
<p>This is paragraph tag</p>
</body>
</html>
Result
This is h1 heading tag
This is paragraph tag