HTML Style Element

This element is used to style the HTML page. The <style> element can have CSS properties for that HTML page only. If we want to apply CSS for multiple pages then we should use separate CSS file.

Example

<!DOCTYPE html>  
<html>  
<head>  
  <title>This Page Title</title>  
  <style>  
    body {background-color: pink;}      
    p {color: blue;}  
  </style>
</head>  
<body>  
<p> Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy</p> 
</body>
</html>