ⓘ style – style (presentation) information # T
The
style
element
allows style information to be embedded in documents.
Permitted attributes #
- ⓘ
global attributes
- Any attributes permitted globally.
- ⓘ
type =
MIME type
#
- A valid MIME type that designates a styling language.
A string that identifies a valid
MIME media type
as defined in
[RFC 2046].
- ⓘ
media =
media-query list
#
- Specifies which media the styles apply to.
- ⓘ
scoped =
d:string "scoped" or d:string ""
NEW
#
- Indicates that the specified style information is meant
to apply only to the
style
element’s parent element, and that element’s child nodes.
Otherwise, the specified styles are meant to apply to the
entire document.
Additional constraints and admonitions #
- A style element must not
contain an occurrence of the character sequence
"
<!--
"
without a matching later occurrence
of the character sequence
"-->
".
Permitted parent elements #
any element that can contain
metadata elements, div, noscript, section, article, aside
Typical default display properties #