![]() |
||||||||||||||||||
| Introduction to CSS | ||||||||||||||||||
|
Examine the text below: Introduction to Cascading Style SheetsThe headline above was written using the Verdana font with 30 point high lettering and the color #009900. It was also centered on the page. This was done by
We can create a style sheet rule by embedding a style sheet in the head section of the web page. The following shows the style sheet rule used to create the headline above: <head> To use the style, simply use the tag <h6> around some text, so the following html: <h6>This is h6!</h6> would look like: This is h6!You can also set the default font properties for a web page by setting CSS rules for the <body> tag (but in the <head> section!!). <style type="text/css"> Which can be used like this... <body>
<h6>Quotes</h6> <p>To be or not to be, that is the question.</p> <ul> <li>There is only one rule to Web Club</li> <li>I want you to design as hard as you can</li> </ul> </body> Which will look like this ... QuotesTo be or not to be, that is the question.
VocabularyThere are several important terms to know so that you can effectively use the multitude of CSS references available on the web and in books:
Here is a formal depiction of a CSS Rule... SELECTOR { PROPERTY : VALUE; } The PROPERTY: VALUE combination is a CSS Declaration. Here is an example of how they are used.... p { color: red; } Notes:
In Summary You create your styles in the HEAD
section of your HTML document. This is just a brief introduction and only one of many ways to use style sheets. |
||||||||||||||||||
| Common Font Related CSS Properties | ||||||||||||||||||
|
||||||||||||||||||
| Putting it Together
|
||||||||||||||||||