Style Sheet Presentation
Style sheets are a way to quickly modify the appearance of pages without having to change each page individually.
A style sheet defines the appearance of each element in Web pages, based on HTML tags and on the styles specified as parameters in the body of the page.
Options for displaying an element can be defined in several ways:
By explicitly indicating the format (for example <B>text in bold</B>).
By defining the style in the HTML tag (for example <TABLE BORDER=1 style=“FONT: 10pt Arial”>).
By linking the HTML document to an external style sheet. This allows modification of the appearance of all Web pages that use the style sheet by acting on the style sheet itself.
This last method is used when generating pages; the Web site style sheet (defined in its properties) is listed in the header (<HEAD>) for each page:
<LINK REL=stylesheet href=“StylSh.Css">
Styles for various elements are then specified. For example, the table is defined with the style “StdConstLayTabProp”:
<TABLE CLASS=“StdConstLayTabProp">
Note that the keyword indicating the style to be used is CLASS, and the STYLE keyword is used to define local tag formatting.
The parameters indicated in the HTML page are added to those indicated in the style sheet and replace those already defined.
The hierarchy of definitions indicated in style sheets varies as a function of the navigator used. They are not recognized by certain navigators.
Redefinition of a style in a page takes priority over the style sheet definition.