Cascading Style Sheets




CS174

Chris Pollett

Sep 13, 2009

Outline

Server Side Includes (SSI)

Getting (SSI) running

The SSI Commands

More on SSI command

Quiz

Which of the following statements is true?

  1. The Doctype for an XHTML1.1 document looks like:
    <!DOCTYPE html>
    
  2. Unordered lists are never used as inline elements
  3. To ensure accessibility of an input tag text field it should either have an associated label or it should make use of a title attribute.

Stylesheets

Levels of Style Sheets

Basics of Styles

Examples of Simple Selectors

h1 {font-size: 24pt;} /* would apply to all h1 tags in the document */

h2, h3 {font-size: 14pt;} /* notice applies to both h2 and h3 tags */

You can also specify that styles should only apply to elements in certain positions within the file:

body b i {font-size: 30pt;} /* only for bolded italic'd text within file, doesn't work NS7*/

Class selectors

ID Selectors