Internal CSS

Internal CSS

An internal style sheet may be used if one single page has a unique style.Internal styles are embedded in the <head> section of the HTML document and are defined inside a <style> tag.

    <!DOCTYPE html>
<html>
<head>
<style>
body {
    background-color: green;
}
h1 {
   color: maroon;
   margin-left: 40px;
}
</style>
</head>
<body>
<h1>This is a heading.</h1>
<p>This is Paragraph.</p>
</body>
</html>
Try it with the Editor