<STYLE> Tag & its Attribute
HTML Tag <STYLE>
<STYLE> Contains Style Sheet definitions and appears in the document head (see the <HEAD> tag). Place Style Sheet data within the comment tags (<!--text -->) to accommodate browsers that do not support the <STYLE> tag.
Attribute of <STYLE> Tag
MEDIA
Specifies the destination medium for style information. It may be a single type or a commaseparated list. Media types include the following: Screen—for online viewing (default setting). Print—for traditional printed material and for documents on screen viewed in print preview mode. Projection—for projectors. Braille—for Braille tactile feedback devices Speech—for a speech synthesizer. All—applies to all devices.
<HEAD>
<TITLE>Washington DC Taverns</TITLE>
<STYLE TYPE="text/css" MEDIA="all">
www.cs-tutorial.com
</STYLE>
</HEAD>
Possible Values
MEDIA Type.
TITLE
Specifies text assigned to the tag. You might use this attribute for context-sensitive help within the document. Browsers may use this to show tool tips.
<STYLE TITLE="Stylesheet 1" TYPE="text/css">
<!-- H1 { background: black; color:
yellow }
LI DD { background: silver; color:
black }
-->
</SCRIPT>
Possible Values
Any Text Message.
TYPE
Specifies the MIME type of the Style Sheet specification standard used.
<HEAD>
<TITLE>Washington DC Taverns</TITLE>
<STYLE TYPE="text/css">
<!--
@import url(Error! Bookmark not defined.
H1 { background: black; color: white}
LI DD { background: silver; color:
darkgreen }
-->
</STYLE>
</HEAD>
Possible Values
text/css