|
What is CSS?
CSS standsrs for Cascading Style Sheets. CSS Styles are used
to define how to display HTML elements. Styles are normally
stored in internet or external style sheets. Styles were added
to HTML 4.0 because developers disliked having to define every
bit of text using tags like <font>. External CSS files
are stored using the .css extention though they can be saved
in HTML format. Multiple style definitions will cascade into
one,
External style sheets can save you a lot of time, as you
can change the look of the page, just by changing the external
file. CSS Style Sheets are supported by both Nescape 4.0 and
Internet Explorer 4.0.
CSS Orders
You may have multipul style sheets saying different things
in your document. In this case they will be ordered in priority
as follows:
1) Inline Style Sheets (inside an element)
2) Internal Style Sheets (inside the head tag)
3) External Style Sheets
4) Browser Default
So for instance an inline style tag would overrule and internal
style sheet, but a browser default would not overrule an external
style sheet.
|