Advanced Modules
26.3
Lesson

Internal Stylesheet

Internal stylesheet is something that is added within the HTML file. When a single web page needs to be styled differently, internal styles can be used.

The style tag, within the head section of a HTML document, are used to define internal styles as shown below:

<html>
  <head>
    <style>
      h1 {
        color: blue;
        font-size: 3rem;
      }
      #my-para {
        font-size: 1.2rem;
      }
    </style>
  </head>
  <body>
  </body>
</html>