<style>

Description

This element allows a style sheet to be specified for the page. It should appear within the <head> section of a document.

Example


<html>
<head>
<style>
body {<!--from  w w w . j a v  a 2  s . c  o m-->
     background-color: black;
     color: white;
}
</style>
</head>
<body>The body cotains a black background and white letters.
</body>
</html>

Click to view the demo

The code above generates the following result.

style




















Home »
  HTML CSS »
    HTML CSS Reference »




HTML Tag Reference
CSS Reference
CSS Selector Reference
Encoding Reference