style
style
elements contain style information, usually expressed in CSS.
Content category
Pseudo-classes
N/A
Attributes
type
sets the MIME type of the content.media
sets the media to which the styles apply.nonce
is a cryptographic nonce used to whitelist inline elements whilst avoiding theunsafe-inline
content security policy.title
specifies a name for the stylesheet, if to be treated as an alternative stylesheet.
References
- MDN
- The
style
element in the HTML specification - What's the purpose of the HTML "nonce" attribute for script and style elements?
Backlinks