style

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

Attributes

<style attribute-name="attribute-value"></style>
Name Value Description
media media query list Media for which the destination of the hyperlink was designed - HTML5
scoped scoped | empty 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 - HTML5
type MIME type MIME type of the content - HTML5 default is 'text/css'

Global

Example | media

Example | scoped

Example | type

External

W3C HTML 4.01 Specification

W3C HTML5

W3C HTML 5.1