Name
style
Synopsis
<style>...</style>
Inserts style sheet rules into the head
of a document. The minimum markup for
embedding a Cascading Style Sheet is:
<style type="text/css">...</style>
Attributes
Internationalization(lang
, dir
, xml:lang
)
id="
text"
XHTML only. Assigns a unique identifying name to the object.
-
media="all|aural|braille|handheld|print|projection|screen|tty|tv"
Specifies the intended destination medium for the style information. It may be a single keyword or a comma-separated list. The default is
screen
.-
title="
text
"
Gives the embedded style sheet a title.
-
type="
content type
" (text/css)
Required.Specifies the style sheet language. For Cascading Style Sheets (currently the only style type option), the value is
text/css
.xml:space
="
preserve
"
XHTML only. Instructs XML processors to preserve the white space in the element.
Get Web Design in a Nutshell, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.