11<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
22<html lang="en">
3- <!-- $Id: intro.src,v 1.5 1997-10-29 04:38:52 ian Exp $ -->
3+ <!-- $Id: intro.src,v 1.6 1997-10-29 20:20:31 howcome Exp $ -->
44<HEAD>
55<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66<TITLE>Introduction to CSS2</TITLE>
@@ -16,15 +16,16 @@ style sheets. For this tutorial, you will need to know a little
1616<a rel="biblioentry" href="./refs.html#ref-HTML40">[HTML40]</a>
1717and some basic desktop publishing terminology.
1818
19- <P>We begin with the following (incomplete) HTML body :
19+ <P>We begin with the following little HTML document :
2020
2121<PRE>
22- <BODY>
23- <H1>Getting started with style sheets</H1>
24- <em>...Some text about style sheets...</em>
25- <H1>Style sheet tricks</H1>
26- <em>...Some text about style sheet tricks...</em>
27- </BODY>
22+ <HTML>
23+ <TITLE>Bach's home page</TITLE>
24+ <BODY>
25+ <H1>Bach's home page</H1>
26+ <b><P>Johann Sebastian Bach was a prolific composer.</b>
27+ </BODY>
28+ </HTML>
2829</PRE>
2930
3031<P>To set the text color of the H1 elements to blue, you can write the
@@ -45,17 +46,16 @@ specification for details and recommended usage.
4546document in a STYLE element:
4647
4748<PRE>
48- <HEAD>
49- <STYLE>
50- H1 { color: blue }
51- </STYLE>
52- </HEAD>
53- <BODY>
54- <H1>Getting started with style sheets</H1>
55- <em>...Some text about style sheets...</em>
56- <H1>Style sheet tricks</H1>
57- <em>...Some text about style sheet tricks...</em>
58- </BODY>
49+ <HTML>
50+ <TITLE>Bach's home page</TITLE>
51+ <STYLE TYPE="text/css">
52+ H1 { color: blue }
53+ <:STYLE>
54+ <BODY>
55+ <H1>Bach's home page</H1>
56+ <P>Johann Sebastian Bach was a prolific composer.
57+ </BODY>
58+ </HTML>
5959</PRE>
6060
6161<P>Note that what appears within the STYLE element's start and end
@@ -77,51 +77,34 @@ types are defined in the <a rel="biblioentry"
7777href="./refs.html#ref-HTML40">[HTML40]</a> specification.
7878
7979<P> The <span class="propinst-color">'color'</span> property is one of around
80- 50 properties defined in this specification that determine the
80+ 70 properties defined in this specification that determine the
8181presentation of an HTML document.
8282
8383<P>HTML authors only need to write style sheets if they want to
8484suggest a specific style for their documents. Each user agent (UA)
8585will have a default style sheet that presents documents in a
8686reasonable -- but arguably mundane -- manner. This specification
87- includes a <a href="./sample.html">sample style sheet</a> to
88- present HTML documents as suggested in the HTML 2.0 specification .
87+ includes a <a href="./sample.html">sample style sheet</a> which
88+ describes how HTML documents typically are rendered .
8989
90- <P>This specification also defines the
91- <a href="./grammar.html">formal grammar</a> of the CSS2 language.
9290
93- <P><em>The tutorial will be expanded, perhaps using examples from
94- the CSS1 book.</em>
91+ <P><em>The tutorial will be expanded.</em>
9592
96- <H2>Design principles behind CSS2</H2>
97- <em>To be written ... </em>
98-
99- <H3>The cascade</H3>
100-
101- <P> In CSS, more than one style sheet can simultaneously influence a
102- document's presentation. There are two main reasons for allowing
103- multiple style sheets to combine and overlap: modularity and
104- author/reader balance.
10593
106- <DL>
107- <DT> modularity
108- <DD> A style sheet designer can combine several (partial) style sheets
109- to reduce redundancy:
94+ <H2>Design principles behind CSS2</H2>
11095
111- <PRE>
112- @import url(http://www.style.org/pastoral);
113- @import url(http://www.style.org/marine);
96+ <UL>
97+ <LI>backward compatibility
98+ <LI>complementary to structured documents
99+ <LI>cascading
100+ <LI>platform & device independence
101+ <LI>accessibility
102+ <LI>maintainability
103+ <LI>network performance
104+ </UL>
114105
115- H1 { color: red } /* override imported sheets */
116- </PRE>
106+ <P><EM>These will be expanded</EM>
117107
118- <DT> author/reader balance
119- <DD> Both readers and authors can influence
120- the presentation through style sheets. To do so, they use the same
121- style sheet language thus reflecting a fundamental feature of the Web:
122- everyone can become a publisher. The UA is free to choose the
123- mechanism for referencing personal style sheets.
124- </DL>
125108
126109</BODY>
127110</HTML>
0 commit comments