|
|
HTML <style> tag
Syntax
<style> - </style>
Definition and Usage
The STYLE element defines a style or a style sheet in a document.
The STYLE element goes in the head section. If you want to include a
style sheet in your page, you should define the style sheet externally, and link
to it using <link>.
Required Attributes
| Attribute |
Value |
Description |
| type |
text/css |
Defines the content-type |
Optional Attributes
| Attribute |
Value |
Description |
| media |
screen
tty
tv
projection
handheld
print
braille
aural
all |
The destination medium for the style information |
Standard Attributes
| title, dir, lang, xml:space |
For a full description, go to Standard
Attributes.
Example
| Source |
Output |
<style fprolloverstyle>A:hover { text-decoration: overline; font-weight: bold}
</style>
|
|
|
|