|
Jan's Cascading Style SheetsThe purpose of Cascading Stylesheets (CSS) is to make it easier to format your HTML pages consistently across your whole site. Styles created with CSS work much like styles in word processing documents. A style is a named collection of font characteristics (like size, color, font-family, and weight) and also display properties (like alignment, margins, background, borders, and position). By changing a style's definition, all elements which use that style are automatically changed, too. Change once, update everywhere! [These pages assume that you are familiar with the basics of writing HTML pages.] Every browser has default styles for standard HTML elements like headings, paragraphs, and lists. You define styles to change those defaults. These pages will not try to show all of the properties that you can change. There are far too many of them! Three Ways to Define a Style:
Only a linked style sheet allows the global changes that are the power of CSS. More on proper syntax on the next page, Terms and Syntax. |