Understanding CSS

Article No. 166
Created: 03:17 AM 12.26.03
Author: HPU Support [Link: support@homepageuniverse.com]
Original URL: https://my.homepageuniverse.com/support/knowledgebase/question.php?qstId=166


CSS stands for Cascading Style Sheets and defines how HTML elements will be displayed. A style sheet can be made up of various items, referred to as Style Sheet Elements.

Disclaimer: Style Sheets are supported by both Netscape 4+ and Internet Explorer 4+. If a visitor is using an older version, they may not see your site as intended.

Style Sheets can save you a lot of work as they contain items such as the font tag and color attributes. Style Sheets are normally saved in external files with the .css extension. This enables you to change the appearance and layout of all the pages on your site, just by editing a single CSS document.

Style sheets can also be used inline within your HTML page's head section.

Style Sheet Cascading Order

Generally speaking, we can say that all the style will cascade by the following rules:
Inline Style (inside HTML element)
Internal Style Sheet (inside the <head> tag)
External Style Sheet
Browser Default

This means that an inline style (inside an HTML element) has the highest priority, overriding all styles listed inside the <head> tag, in an external style sheet, and in a browser (default setting).

Back to original article