Jazzo.co.uk uses cookies to provide necessary site functionality and improve your experience. By using our website, you agree to our Privacy Policy and our Terms & Condition.

HTML <style>

query_builder | Christopher Pisani

The HTML element <style> is used to add CSS styles to an HTML document without calling to an external stylesheet file. Styles can be called by a class name, id or even by tag name.

Some CSS styling example

If various styles are used for the same element, there are a few steps to consider. Follow the next examples carefully to see how priority takes over styles.

Using unique id has precedence on class in CSS styles
The second call in styles takes precedence.
The !important statment takes precedence
An in-line statement within the element takes precedence
The statement with !important takes precedence over all statements

Important Note :

A simple table of precedence actions
1. - id takes over class
2. - inline statment takes over id
3. - Using !important statment takes over the inline statement

Available Attributes

Attribute Values Functionality
media all (default)
aural (Speech synthesizers)
braille (Braille feedback devices)
handheld (small devices or limited bandwith)
projection (Projectors)
print (Print preview mode)
screen (Computer size)
tty (Teletypes and similar media)
tv (Television devices)
The media resource optimization method
type Media types Media type of the style sheet