W3 3.2y
4.0y
NS 3.0n
4.0y
IE 3.0y
4.0y
TV 1.2n
2.1n

<STYLE>...</STYLE>

Description

This element is a container for style sheet elements to use with this document. The element must be placed inside the HEAD element. To hide the contents of the element for browsers that do not support the element you can use the !-- element.

The World Wide Web Consortium has published the final version of the level 1 of the Cascading Style Sheet mechanism out=>.

DTD

<!ELEMENT STYLE - - %StyleSheet        -- style info -->
<!ATTLIST STYLE
  %i18n;                               -- lang, dir, for use with title --
  type        %ContentType;  #REQUIRED -- content type of style language --
  media       %MediaDesc;    #IMPLIED  -- designed for use with these media --
  title       %Text;         #IMPLIED  -- advisory title --
  >
from the HTML 4.0 DTD, "Copyright © W3C, (MIT, INRIA, Keio). All Rights Reserved."

Attributes

Internationalization attributes: dir lang

W3 3.2n
4.0y
NS 3.0n
4.0n
IE 3.0n
4.0n
TV 1.2n
2.1n
MEDIA
This attribute defines which medium should be used to render the document. The value is a comma-separated value of possible media. The default is "screen".
W3 3.2n
4.0y
NS 3.0n
4.0y
IE 3.0y
4.0y
TV 1.2n
2.1n
TYPE
This identifies the content-type of the used style-sheet elements. These are the supported values:
text/css
Used to indicate cascading style sheets.
text/javascript
This value is supported by Netscape Navigator 4.0 and indicates JavaScript style sheets. It is used for the implementation of Dynamic HTML in Netscape Communicator.

W3 3.2n
4.0y
NS 3.0n
4.0n
IE 3.0n
4.0n
TV 1.2n
2.1n
TITLE
Description of the title attribute

Examples

Source
<A href="STYLE1.html">See the STYLE element in action</A>, (if your browser
supports them).
 
Result
See the STYLE element in action, (if your browser supports them).
Statistics