
Three approaches to using CSS:
| Using the STYLE Attribute <H1 STYLE="color: blue">Some text</H1> | |
| Using the <STYLE> Element Inside the <HEAD> container <STYLE TYPE="text/css"> H1 { color: red; } </STYLE> | |
| Using External Style Sheets H1 { color: white; background-color: green; } H2 { color: red; } And in the <HEAD> container <LINK HREF="styles.css" REL="stylesheet"> |
Comments in CSS may be used in the last two approaches.
Use /* */ for comments.
Combining Style sheet
combinations are possible using @import
"sheet".
The
@import
must precede all rules in a style sheet.