Skip to content

Commit b570ad7

Browse files
committed
[css2] .
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%405
1 parent 7f53fc1 commit b570ad7

6 files changed

Lines changed: 109 additions & 30 deletions

File tree

css2/Attic/conform.src

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<!DOCTYPE HTML SYSTEM "http://www.w3.org/TR/WD-html40/sgml/HTML4.dtd">
22
<html lang="en">
3-
<!-- $Id: conform.src,v 1.1 1997-07-29 17:12:45 ijacobs Exp $ -->
3+
<!-- $Id: conform.src,v 1.2 1997-07-30 12:11:48 ijacobs Exp $ -->
44
<HEAD>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<TITLE>CSS2 Conformance</TITLE>
77
<LINK rel="next" href="refs.html">
8-
<LINK rel="previous" href="conformance.html">
8+
<LINK rel="previous" href="ui.html">
99
<LINK rel="STYLESHEET" href="style/default.css" type="text/css">
1010
</HEAD>
1111
<BODY>

css2/DOC/CONVENTIONS

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ Properties
2121
* To mark up property definitions. For a property named "propname", use:
2222

2323
<DIV class="propdef">
24-
<Hn class="propname"><span class="index-def">'propname'</a></Hn>
25-
(generates <a name="propdef-propname">&nbsp;</a>)
24+
<Hn class="propname"><a name="propdef-propname">'propname'</a></Hn>
2625
<TABLE class="propinfo">
2726
<TR><TH>Property name:<TD>...</TR>
2827
<TR><TH>Value:<TD>...</TR>
@@ -168,7 +167,7 @@ Document HEAD
168167

169168
<!DOCTYPE HTML SYSTEM "http://www.w3.org/TR/WD-html40/sgml/HTML4.dtd">
170169
<html lang="en">
171-
<!-- $Id: CONVENTIONS,v 1.2 1997-07-29 17:14:16 ijacobs Exp $ -->
170+
<!-- $Id: CONVENTIONS,v 1.3 1997-07-30 12:12:19 ijacobs Exp $ -->
172171
<HEAD>
173172
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
174173
<TITLE>CSS2 Specification</TITLE>
@@ -181,3 +180,4 @@ Document HEAD
181180
</BODY>
182181
</HTML>
183182

183+

css2/refs.src

Lines changed: 13 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE HTML SYSTEM "http://www.w3.org/TR/WD-html40/sgml/HTML4.dtd">
22
<html lang="en">
3-
<!-- $Id: refs.src,v 1.1 1997-07-29 17:13:34 ijacobs Exp $ -->
3+
<!-- $Id: refs.src,v 1.2 1997-07-30 12:11:53 ijacobs Exp $ -->
44
<HEAD>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<TITLE>References</TITLE>
@@ -24,23 +24,9 @@ Download from <a href="http://www.w3.org/TR/REC-CSS1-961217.html">http://www.w3.
2424
<dd>"HTML 3.2 Reference Specification", Dave Raggett, 14 January 1997.<BR>
2525
Download from <a href="http://www.w3.org/TR/REC-html32.html">http://www.w3.org/TR/REC-html32.html</a>
2626

27-
<!--
28-
<dt><strong><a name="ref-HTML40">[HTML40]</a></strong>
29-
<dd>
30-
<A NAME="ref2">[2]</A> Sometime in 1997 we expect there to be a single HTML
31-
specification that has support for Style Sheets and Internationalization.
32-
Among the works in progess in this area is
33-
"<A HREF="http://www.w3.org/pub/WWW/TR/WD-style.html">HTML3 and Style
34-
Sheets</A>" (http://www.w3.org/pub/WWW/TR/WD-style) and the
35-
"<A HREF="http://www.w3.org/pub/WWW/MarkUp/Cougar/HTML.dtd">Cougar DTD</A>"
36-
(http://www.w3.org/pub/WWW/MarkUp/Cougar/HTML.dtd).
37-
-->
38-
3927
<dt><strong><a name="ref-RFC1738">[RFC1738]</a></strong>
4028
<dd>"Uniform Resource Locators", T. Berners-Lee, L. Masinter, and M. McCahill, December 1994.<BR>
4129
Download from <a href="ftp://ds.internic.net/rfc/rfc1738.txt">ftp://ds.internic.net/rfc/rfc1738.txt</a>.
42-
<dt><strong><a name="ref-ISO8879">[ISO8879]</a></strong>
43-
<dd>
4430

4531
<!-- Was ref3 -->
4632
<dt><strong><a name="ref-RFC1866">[RFC1866]</a></strong>
@@ -68,18 +54,13 @@ For the list of SGML entities, consult <a
6854
href="ftp://ftp.ifi.uio.no/pub/SGML/ENTITIES/">ftp://ftp.ifi.uio.no/pub/SGML/ENTITIES/</a>.
6955

7056
<!-- Was ref6 -->
71-
<dt><strong><a name="ref-ISO8879">[ISO10179]</a></strong>
57+
<dt><strong><a name="ref-ISO10179">[ISO10179]</a></strong>
7258
<dd><A HREF="http://www.iso.ch/cate/d18196.html">ISO/IEC
7359
10179:1996</A> "Information technology -- Processing languages -- Document
7460
Style Semantics and Specification Language (DSSSL)"<BR>
7561
Download from <A
7662
HREF="http://occam.sjf.novell.com:8080/dsssl/dsssl96">http://occam.sjf.novell.com:8080/dsssl/dsssl96</A>
7763

78-
<!-- Was ref7 -->
79-
<dt><strong><a name="ref-ISO9899">[ISO9899]</a></strong>
80-
<dd><A HREF="http://www.iso.ch/cate/d17782.html">ISO/IEC
81-
9899:1990</A> Programming languages -- C.
82-
8364
<!-- Was ref8 -->
8465
<!-- SHould this be Unicode 2.0? Or the latest version? (cf Bert) -->
8566
<dt><strong><a name="ref-UNICODE">[UNICODE]</a></strong>
@@ -118,6 +99,11 @@ Download from <a href="ftp://ftp.inforamp.net/pub/users/poynton/doc/Mac/Mac_gamm
11899
Download from <A HREF="ftp://sgigate.sgi.com/pub/icc/ICC32.pdf">
119100
ftp://sgigate.sgi.com/pub/icc/ICC32.pdf</a>.
120101

102+
<!-- Was ref7 -->
103+
<dt><strong><a name="ref-ISO9899">[ISO9899]</a></strong>
104+
<dd><A HREF="http://www.iso.ch/cate/d17782.html">ISO/IEC
105+
9899:1990</A> Programming languages -- C.
106+
121107
<!-- Was ref 15 -->
122108
<dt><strong><a name="ref-YACC">[YACC]</a></strong>
123109
<dd>"YACC - Yet another compiler compiler", S. C. Johnson, Technical
@@ -135,6 +121,12 @@ Report, Murray Hill, 1975.
135121
<dd>W3C resource page on web style sheets.<BR>
136122
Examine at <A HREF="http://www.w3.org/pub/WWW/Style">
137123
http://www.w3.org/pub/WWW/Style</a>
124+
125+
<dt><strong><a name="ref-HTML40">[HTML40]</a></strong>
126+
<dd>"HTML 4.0 Specification (Working Draft)", D. Raggett, A. Le Hors,
127+
I. Jacobs, 8 July 1997.<BR>
128+
Download from <a href="http://www.w3.org/TR/WD-html40-970708/">
129+
http://www.w3.org/TR/WD-html40-970708/</a>
138130
</dl>
139131

140132
</BODY>

css2/selector.src

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE HTML SYSTEM "http://www.w3.org/TR/WD-html40/sgml/HTML4.dtd">
22
<html lang="en">
3-
<!-- $Id: selector.src,v 1.1 1997-07-29 17:13:42 ijacobs Exp $ -->
3+
<!-- $Id: selector.src,v 1.2 1997-07-30 12:11:57 ijacobs Exp $ -->
44
<HEAD>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<TITLE>Selectors</TITLE>
@@ -10,5 +10,8 @@
1010
</HEAD>
1111
<BODY>
1212
<H1 align="center">Selectors</H1>
13+
<H2>Selectors</H2>
14+
<H3>Grouping selectors</H3>
15+
<H2>Selectors in HTML</H2>
1316
</BODY>
1417
</html>

css2/syndata.src

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE HTML SYSTEM "http://www.w3.org/TR/WD-html40/sgml/HTML4.dtd">
22
<html lang="en">
3-
<!-- $Id: syndata.src,v 1.1 1997-07-29 17:13:46 ijacobs Exp $ -->
3+
<!-- $Id: syndata.src,v 1.2 1997-07-30 12:12:01 ijacobs Exp $ -->
44
<HEAD>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<TITLE>CSS2 syntax and basic data types</TITLE>
@@ -10,5 +10,12 @@
1010
</HEAD>
1111
<BODY>
1212
<H1 align="center">CSS2 syntax and basic data types</H1>
13+
<H2>Syntax</H2>
14+
<H3>Rules</H3>
15+
<H3>At-rules (@-rules)</H3>
16+
<H3>Comments</H3>
17+
<H2>Basic Data types</H2>
18+
<H3>Keywords, strings, numbers</H3>
19+
<H3>Units</H3>
1320
</BODY>
1421
</html>

css2/tutorial.src

Lines changed: 79 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE HTML SYSTEM "http://www.w3.org/TR/WD-html40/sgml/HTML4.dtd">
22
<html lang="en">
3-
<!-- $Id: tutorial.src,v 1.1 1997-07-29 17:13:54 ijacobs Exp $ -->
3+
<!-- $Id: tutorial.src,v 1.2 1997-07-30 12:12:05 ijacobs Exp $ -->
44
<HEAD>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<TITLE>A brief CSS2 tutorial</TITLE>
@@ -9,6 +9,83 @@
99
<LINK rel="STYLESHEET" href="style/default.css" type="text/css">
1010
</HEAD>
1111
<BODY>
12-
<H1 align="center">A brief CSS tutorial</H1>
12+
<H1 align="center">A brief CSS tutorial</H1>
13+
<P> In this tutorial, we show how easy it can be to design simple
14+
style sheets. For this tutorial, you will need to know a little
15+
<a rel="biblioentry" href="./refs.html#ref-HTML40">[HTML40]</a>
16+
and some basic desktop publishing terminology.
17+
18+
<P>We begin with the following (incomplete) HTML body:
19+
20+
<PRE>
21+
&lt;BODY&gt;
22+
&lt;H1&gt;Getting started with style sheets&lt;/H1&gt;
23+
<em>...Some text about style sheets...</em>
24+
&lt;H1&gt;Style sheet tricks&lt;/H1&gt;
25+
<em>...Some text about style sheet tricks...</em>
26+
&lt;/BODY&gt;
27+
</PRE>
28+
29+
<P>To set the text color of the H1 elements to blue, you can write the
30+
following CSS rule:
31+
32+
<PRE>
33+
H1 { color: blue }
34+
</PRE>
35+
36+
<P>The <a rel="biblioentry" href="./refs.html#ref-HTML40">[HTML40]</a>
37+
specification defines how style sheet rules may be included in or
38+
linked to an HTML document (in the element's start tag, in the head of
39+
the document, or linked externally). Please consult
40+
the <a rel="biblioentry" href="./refs.html#ref-HTML40">[HTML40]</a>
41+
specification for details and recommended usage.
42+
43+
<P>In our example, we place the rule in the HEAD of the
44+
document in a STYLE element:
45+
46+
<PRE>
47+
&lt;HEAD&gt;
48+
&lt;STYLE&gt;
49+
H1 { color: blue }
50+
&lt;/STYLE&gt;
51+
&lt;/HEAD&gt;
52+
&lt;BODY&gt;
53+
&lt;H1&gt;Getting started with style sheets&lt;/H1&gt;
54+
<em>...Some text about style sheets...</em>
55+
&lt;H1&gt;Style sheet tricks&lt;/H1&gt;
56+
<em>...Some text about style sheet tricks...</em>
57+
&lt;/BODY&gt;
58+
</PRE>
59+
60+
<P>Note that what appears within the STYLE element's start and end
61+
tags has CSS syntax, not HTML syntax.
62+
63+
<P>This example illustrates a simple CSS rule. A rule consists of two
64+
main parts: selector ('H1') and declaration ('color: blue'). The
65+
declaration has two parts: property ('color') and value
66+
('blue'). While the example above tries to influence only one of the
67+
properties needed for rendering an HTML document, it qualifies as a
68+
style sheet on its own. Combined with other style sheets (one
69+
fundamental feature of CSS is that style sheets are combined) it will
70+
determine the final presentation of the document.
71+
72+
<P> The selector is the link between the HTML document and the style
73+
sheet, and all HTML element types are possible selectors. HTML element
74+
types are defined in the <a rel="biblioentry"
75+
href="./refs.html#ref-HTML40">[HTML40]</a> specification.
76+
77+
<P> The <span class="propinst">'color'</span> property is one of around
78+
50 properties defined in this specification that determine the
79+
presentation of an HTML document.
80+
81+
<P>HTML authors only need to write style sheets if they want to
82+
suggest a specific style for their documents. Each user agent (UA)
83+
will have a default style sheet that presents documents in a
84+
reasonable -- but arguably mundane -- manner. This specification
85+
includes a <a href="./sample.html">sample style sheet</a> to
86+
present HTML documents as suggested in the HTML 2.0 specification.
87+
88+
<P>This specification also defines the
89+
<a href="./grammar.html">formal grammar</a> of the CSS2 language.
1390
</BODY>
1491
</HTML>

0 commit comments

Comments
 (0)