CSS Methods

Styles are just bits of typed text saved as a file with a .css extension at the end (e.g. styles.css). You can create styles by opening up a simple text editor, such as Notepad, and typing the styles directly into the text editor. You can also use the WYSIWYG (What You See Is What You Get) tools in Dreamweaver or other tools to create styles.

There are three main ways to include styles in your documents:

  1. Link to an an "external style sheet"
  2. Create styles in the <head> of an HTML document
  3. Create "inline styles" inside of elements within the <body> of the HTML file (for example, in <p> or <h1> or <ul>, etc.)

Creative Commons License
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 2.5 License.