The <STYLE>
element should reside within the <HEAD>
element and is used to delimit Style Sheet information.
The TYPE and TITLE attributes can be used within the <STYLE>
element. TYPE
is used to specify the internet media (MIME) type of the style sheet definition (which is "text/css") and TITLE
can be used to provide a title for the style sheet definitions. This may be used by browsers when a choice of style sheets are available.
For example :
<HTML>
<HEAD>
<TITLE>Introduction to Style Sheets</TITLE>
<STYLE TYPE="text/css" TITLE="Bright Colours">
BODY { color : white}
P { color : blue;
font-size : 12pt;
font-family : Arial}
H1 { color : red;
font-size : 18pt}
</STYLE>
</HEAD>
<BODY>
...
Defines the styles that are specified within the <STYLE> ... </STYLE>
elements to be a style sheet, having the title "Bright Colours". For more information about Style Sheets, see the Style Sheets topic.
NOTE : Use of the <STYLE>
element and Style Sheet use in general is Internet Explorer specific.