Internal CSS stylesheet

by danielkwood

HTML

<html>
  <head>
     <title>Adding CSS to a webpage using internal stylesheets</title>
     <style type="text/css">
         p{
            color:blue;
         }
         h1{
            color: green;
            background-color: yellow;
         }
     </style>
  </head>
  <body>
     <h1>This is a heading that will be green with a yellow background.</h1>
     <p>This is a paragraph of text. Because a style has been applied using the p selector, this paragraph will be blue...</p>
     <p>...and this paragraph will also be blue</p>
  </body>
</html>