Internal CSS

An Internal CSS style sheet is used to format the single HTML Page with the unique style.

The internal style is defined inside the <style> element and this tag inside the head section.

Example :

<!DOCTYPE html>
body {
  background-color: aliceblue;

h1 {
  color: tomato;
  margin-left: 20px;

<h1>This is a heading</h1>
<p>This is a paragraph.</p>

  Try it Yourself