MDN self-hosted library · e01.org

`style` HTML global attribute

The style global attribute contains CSS styling declarations to be applied to the element. Note that it is recommended for styles to be defined in a separate file or files. This attribute and the style element have mainly the purpose of allowing for quick styling, for example for testing purposes.

no runnable cells html-attribute upstream source

The style global attribute contains CSS styling declarations to be applied to the element. Note that it is recommended for styles to be defined in a separate file or files. This attribute and the style element have mainly the purpose of allowing for quick styling, for example for testing purposes.

[!NOTE] This attribute must not be used to convey semantic information. Even if all styling is removed, a page should remain semantically correct. Typically it shouldn't be used to hide irrelevant information; this should be done using the hidden attribute.

tabbed-shorter

```html interactive-example

Well, I am the slime from your video
Oozin' along on your livin' room floor.

```

Specifications

Browser compatibility

See also