'style' Example : style « Tags « HTML / CSS






'style' Example

 
    
<html>
<title>style element example</title>
<head>
<style>body { background-color: black; color: white; }</style>
</head>
<body>The body cotains a black background and white letters.</body>
</html>
    
      
        
  








Related examples in the same category

1.Declaring a style sheet in the header section
2.Embedded Style Sample
3.Two Embedded Style
4.Styling text with CSS
5.The style attribute allows you to declare inline styles. Separate multiple styles with a semicolon.