<STYLE> | NN 4 IE 3 HTML 4 |
<STYLE>...</STYLE> | 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 | |
Example
<STYLE TYPE="text/css"> <!-- H1 {font-size:18pt; text-transform:capitalize} P {font-size:12pt} --> </STYLE> |
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. This attribute does not work on the Macintosh version of Internet Explorer 4. 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 button object in | |||
Example
<STYLE TYPE="text/css" DISABLED>...</STYLE> | |||
Value The presence of the attribute disables the element. | |||
| |||
Object Model Reference
|
MEDIA | NN n/a IE 4 HTML 4 | ||
MEDIA=" | 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.0 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.0 are all | aura | braille | handheld | print | projection | screen | tty | tv. Internet Explorer values are all | print |screen. | |||
| |||
Object Model Reference
|
TYPE | NN 4 IE 4 HTML 4 | ||
TYPE=" | 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 Internet Explorer 4 is "text/css". Navigator 4 also recognizes "text/javascript" when using JavaScript syntax style sheets. | |||
| |||
Object Model Reference
|