Cascade Sample

Debra Gardner

Assignments page">Homework page

this text is H1

External Sheet:
The pair of properties I used are "color" and "font-family": This made the color of the font to be green and the font-family giving the browser a list of choices to choose from(depends on what font the user has) of-Palatino Linotype- Book Antiqua-Palatino-serif. (if user does not have any of the fonts lised above it will choos a serif font to show)WHAT WINS= Font-family because it is the only one that make the declaration for the h1 tage in the exteral sheet.Except for the inline style added to the first h1 tage.

Embedded Sheet:
The pair of properties I used are "color" of white(this overided the text color from the EXTERNAL CSS Style Sheet and put a background-color which are on the last four h1 sentences below(this became the third property I added). WHAT WINS?= The color wins here becasue it is declared in the html page.

Inline Styles:
The pair of properties are the "background-color" this tured the backgound color to black and left the font color white then the "font-family" toCourier New, Courier, monospace(once again the list is given because we don't know what font the user is using) this changed only the font and back-gound color on the first h1 tag. WHAT WINS?= Both because this an inline meaning it declares before anything else will

this text is H1

this text is H1

this text is H1

this text is H1

Valid XHTML 1.0 Strict graphic: Valid CSS 2.1