Friday, February 20, 2009

external style sheet (CSS) -Joannacel Paraiso

STYLES
External Style Sheet
  • An external style sheet is ideal when the style is applied to many pages. With an external style sheet, you can change the look of an entire Web site by changing one file. Each page must link to the style sheet using the "link" tag. The "link" goes inside the head section.
Internal Style Sheet
  • An internal style sheet should be used when a single document has a unique style. You define internal styles in the head section with the "style" tag.
Features of External Style Sheet
>By using the Link Tag to load a basic external style sheet (CSS), it's possible to control the look n feel of multiply WebPages by making changes to One style sheet. (Alternate: Advanced CSS Generator)
This means that it is easy to change font, bgcolor, background, etc on ALL pages - just by changing one external style sheet (CSS).
Types of external CSS
  • The three types of external style sheets (persistent, preferred, or alternate) are explained in Detail at The World Wide Web Consortium (W3C) (section 14.3). The most common external style sheet is the persistent link. The 'link' is always added to the Head Section .
Special Elements
  • To use special definitions, such as the .note shown at the end of the example, just use the Span tag to set the format around a section.
Summary:
  • An external style sheet (CSS) is perfect - when the same style / format / look n feel is required on numerous pages. With an external style sheet, the webmaster can change the look of the entire site - by changing one file.

No comments: