References

Collection of references for web development.

HTML style tag

Description

The HTML <style> element represents style information for a document.

Attributes

Attribute Value Description
media Operators: and|not|,
Devices: all, print, screen, speech
Values: aspect-ratio, color, color-index, grid, height, monochrome, orientation, resolution, scan, width
Specifies the media type for which the element or the document is designed for.
nonce string Specifies the number used once to white-list for the scripts policy.
title string Specifies a title for the element.
type MIME type Specifies the media type for the URL.

Example

<style>
html {
	background-color:blue;
	font-color:white;
}	
</style>