1. Home
  2. Computing & Technology
  3. Web Design / HTML

<style></style>

By Jennifer Kyrnin, About.com

<style> description:

The <style> element places CSS style sheets within the document.

<style> Web Browser Support:

<style> Attributes:

<style> End Tag:

</style> REQUIRED

Contents:

style sheet notation. The following tags are valid within the <style> tag:
None

<style> Valid Context:

The <style> tag is valid within the following tags:
head

<style> Usage:

  • basic style sheet
    <style type="text/css">
    h1 {
      color : #ff0000;
    }
    p {
      font-face : "arial, sans-serif";
    }
    </style>

<style> Special Notes:

  • Use style sheets to create valid XHTML.

More <style> Information:

Return to XHTML element (HTML Tags) Library

Explore Web Design / HTML

More from About.com

  1. Home
  2. Computing & Technology
  3. Web Design / HTML
  4. HTML and XHTML
  5. XHTML
  6. HTML Tags
  7. The style Element - style sheets - XHTML 1.0 HTML 4.0

©2008 About.com, a part of The New York Times Company.

All rights reserved.