September 28, 2015

Applying an internal Stye Sheet in HTML document

An internal style sheet can be created by inserting the style rule sets between <style> and </style>  tags in the head section of the HTML document. So, lets look at how you can insert a style sheet in a document without having to put the style sheet in a separate css file.

Here is an example of how you would include the style sheet in your HTML document.

  <style> 
  body {
  background-color:yellow;
  font-family:Arial, verdana, sans-serif; 
  }
  h1 { 
  color:black;
  } 
  p {
  color:red;
  }
  </style> 

  <body> 
  <h1>Internal CSS</h1> 
  <p>I am a Paragraph</p> 
  </body

END...

No comments :

Post a Comment