Web Design

(Nancy Kaufman) #1

148


Use the Cascade ...................................................


2 In the head of the document,
type <style type=
”text/css”>.

1 Open a Web page that contains
a link to an external style
sheet.

Use the Cascade


Y


ou can have CSS declarations in both an external style sheet and an embedded style sheet. In
this case, the order of the cascade specifies that the embedded styles override conflicts with

the external styles. This can be used to your advantage because it allows you to have page-specific


formatting for select elements while still maintaining the overall look and feel of the site. You


should understand that only those styles in direct conflict are overridden. As much as possible, the


browser attempts to use both the external and embedded styles together.


1


2

Free download pdf