HTML中的样式

  1. <html>
  2.  
  3. <head>
  4. <style type="text/css">
  5. h1 {color: red}
  6. p {color: blue}
  7. </style>
  8. </head>
  9.  
  10. <body>
  11. <h1>header 1</h1>
  12. <p>A paragraph.</p>
  13. </body>
  14.  
  15. </html>