HTML 5: The Markup Language (ARIA Edition)

stylestyle (presentation) information # T

The style element allows style information to be embedded in documents.

Content model #

style =
non-replaceable-character-data & style.attrs
style.elem.scoped =
non-replaceable-character-data & style.scoped.attrs

Attribute model #

Element-specific attributes #

type = mimetype
A valid MIME type that designates a styling language.
media = mediaquery
Specifies which media the styles apply to.
scoped = "scoped" | ""
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.

Tag omission #

A style element must have both a start tag and an end tag.

Permitted contexts #

Typical default display properties #

style {
display: none; }