HTML and CSS Reference
In-Depth Information
Defines a document-level stylesheet
dir, lang, media, title, type
</style> ; rarely omitted in HTML
End tag
Used in
Everything between the <style> and </style> tags is considered part of
the style rules that the browser is to apply when rendering the docu-
ment. Actually, the contents of the <style> tag are not HTML or XHTML
and are not bound by the normal rules for markup content. The <style>
tag, in effect, lets you insert foreign content into your document that the
browser uses to format your tags.
For example, a styles-conscious browser displays the contents of all <h1>
tags as blue, italic text in an HTML document that has the following
document-level stylesheet definition in its head:
<title>All True Blue</title>
<style type="text/css">
/* make all level-1 headers blue in italics */
Search WWH ::

Custom Search