The cover of The Complete Idiot's Guide to Create a Web Page The Complete Idiot's HTML Tag Reference

| Index | Previous Tag: <STRONG> | Next Tag: <SUB> |


<STYLE>

Defines a style sheet.

Support:

HTML StandardInternet ExplorerNetscape Navigator
3.0 and later 3.0 and later 4.0 and later
Notes:
  • This tag requires the </STYLE> end tag.
  • Include HTML comment tags to hide the style sheet from older browsers.
Attributes:
LANG = "Text"
The language used by the tag's attribute values and text content.

Support:

HTML StandardInternet ExplorerNetscape Navigator
4.0 and later Not supported Not supported

MEDIA = "Text"
Determines the intended destination for the styles.

Support:

HTML StandardInternet ExplorerNetscape Navigator
4.0 and later 4.0 and later Not supported

Notes:

  • Possible values: SCREEN, PRINT, PROJECTION, BRAILLE, SPEECH, ALL.

TYPE = "Text" (Required)
The content type of the style sheet.

Support:

HTML StandardInternet ExplorerNetscape Navigator
3.0 and later 3.0 and later 4.0 and later

Notes:

  • Use TYPE="text/css".

Example:
<STYLE TYPE="text/css">
<!--
P {font-size: 12pt}
-->
</STYLE>

| Index | Previous Tag: <STRONG> | Next Tag: <SUB> |