description & Usage
Using the <style> tag, you can create different styles and features for your codes in html documents.
<style> are often for css language.
Browser compatibility and Support
# | Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|---|
<style> |
Attributes
Attributes | Values | Description |
---|---|---|
media |
media-query
|
en |
type |
text , css
|
en |
Global Attributes
The style tag supports the HTML Global Attributes.
Event Attributes
The style tag supports the HTML Event Attributes.
More Examples
Default CSS
Most browsers will display the style tag with the following default style: