Style Information | WebReference

Style Information

HTML 4.01 Element Reference

By Lee Underwood

Return to HTML 4.01 element index page

Name: Style Information

<style> ... </style>

Description: Used to contain Style Sheet definitions.

Browser Compatibility: NN: 4.0+/IE: 3.0+/Opera: 4+

  • dir
  • lang
  • media
  • title
  • type

Code Example:

<style type="text/css">
    body {background: blue; color: white;}
    h1 {font: 14pt Arial, Helvetica, Sans-Serif;}

Comments: Appears within the <head> of the document.

Created: March 15, 2005