Example of HTML Embedded Style Sheet - HTML CSS HTML

HTML CSS examples for HTML:Tag Style

Description

Example of HTML Embedded Style Sheet

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html lang="en">
 <head> 
  <meta charset="UTF-8"> 
  <title>Example of HTML Embedded Style Sheet</title> 
  <style type="text/css">
        body { background-color: pink; }
    h1 { color: #EEEEEE; }
        p { color: green; }
    </style> 
 </head> <!-- w w w  .  j av  a  2  s .co m-->
 <body> 
  <h1>This is a heading</h1> 
  <p>This is a paragraph.</p>   
 </body>
</html>

Related Tutorials