Digital Buffet

Cascading Style Sheets


Cascading Style Sheets
Java Applet
Java Script


Cascading Style Sheets (CSS) were created and first used in 1996.

The benefits of CSS pages are:

  • more control for a consistent layout.
  • a means to update the format of many pages by changing one document.
  • uses less code which equals faster download.

The three main types of CSS pages are:

  1. External CSS - An external style sheet is used when applying a style to many pages. With an external style sheet, you can change the look of an entire Web site by modifying one file (fn.css) that all the HTML pages refer too.
  2. Internal CSS - An internal style sheet should be used when a single document has a unique style from the rest of the HTML pages. These modifications are made in the <HEAD> of the unique page.
  3. Inline CSS - An inline style mixes content with presentation. This style is to only be applied to a single occurrence of an element. These modifications are made in the <Body> of the HTML at the specific element.

example: the pages of this web site use an External CSS. (By viewing the source, you can see the name of the .CSS file that the pages are referring too.


For more information and examples check out