<STYLE> | NN 4 IE 3 HTML 4
<STYLE>...</STYLE> | HTML End Tag: Required
The style element is a container for style sheet rules. Use the style element only inside the head element. You may include more than one style element in a head element (see the media attribute). Older browsers may attempt to render the content of a style element. To prevent that, you should wrap the style sheet rules inside HTML comment tags. See Chapter 3 for details on the makeup of style sheet rules.
Example
    <STYLE type="text/css">
    <!--
    H1 {font-size:18pt; text-transform:capitalize}
    p  {font-size:12pt}
    -->
    </STYLE>
Object Model Reference
    [window.]document.getElementsByTagName("style")[i]
    [window.]document.getElementById(elementID)
Element-Specific Attributes

disabled | media | type

Element-Specific Event Handler Attributes
None.

disabled | NN n/a IE 4 HTML n/a
disabled | Optional
Disables the entire style element, as if it didn't exist in the document. IE/Mac responds to this attribute starting in Version 5. The disabled attribute is a Boolean type, which means that its presence in the attribute sets its value to true. Its value can also be adjusted after the fact by scripting (see the style object in Chapter 9).
Example
    <STYLE type="text/css" disabled>...</STYLE>
Value
The presence of the attribute disables the element.
Default
false
Object Model Reference
    [window.]document.getElementsByTagName("style")[i].disabled
    [window.]document.getElementById(elementID).disabled

lang | NN 3 IE 4 HTML 4
lang="languageCode" | Optional
The language being used for the element's attribute values and content. A browser can use this information to assist in proper rendering of content with respect to details such as treatment of ligatures (when supported by a particular font or required by a written language), quotation marks, and hyphenation. Other applications and search engines might use this information to aid the selection of spell-checking dictionaries and the creation of indices.
Example
    <SPAN lang="de">Deutsche Bundesbahn</SPAN>
Value
Case-insensitive language code.
Default
Browser default.
Object Model Reference
    [window.]document.getElementById(elementID).lang

media | NN 6 IE 4 HTML 4
media="descriptorList" | Optional
Sets the intended output device for the content of the element. The media attribute looks forward to the day when browsers are able to tailor content to specific kinds of devices such as pocket computers, text-to-speech digitizers, or fuzzy television sets. The HTML 4 specification defines a number of constant values for anticipated devices, but the list is open-ended, allowing future browsers to tailor output to yet other kinds of media and devices.
Example
    <STYLE type="text/css" media="print">...</STYLE>
Value
Case-sensitive constant values. Multiple values can be grouped together in a comma-delimited list within a quoted string. Values defined in HTML 4 are all | aura | braille | handheld | print | projection | screen | tty | tv. Internet Explorer values are all | print |screen.
Default
all
Object Model Reference
    [window.]document.getElementsByTagName("style")[i].media
    [window.]document.getElementById(elementID).media

type | NN 4 IE 4 HTML 4
type="MIMEType" | Required
The type attribute tells the browser which style sheet syntax to use to interpret the style rules defined in the current element.
Example
    <STYLE type="text/css">...</STYLE>
Value
Case-insensitive MIME type. A type accepted by both Navigator 4 and later and IE 4 and later is "text/css". Navigator 4 (only) also recognizes "text/javascript" when using JavaScript syntax style sheets.
Default
text/css
Object Model Reference
    [window.]document.getElementsByTagName("style")[i].type
    [window.]document.getElementById(elementID).type