-
Notifications
You must be signed in to change notification settings - Fork 790
Expand file tree
/
Copy pathsample.src
More file actions
334 lines (274 loc) · 6.99 KB
/
sample.src
File metadata and controls
334 lines (274 loc) · 6.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html lang="en">
<!-- $Id: sample.src,v 2.3 1998-02-11 13:27:15 ijacobs Exp $ -->
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<TITLE>Appendix A: A sample style sheet for HTML 4.0</TITLE>
</HEAD>
<BODY>
<H1 align="center">A sample style sheet for HTML 4.0</H1>
<P><em>This appendix is informative, not normative.</em></P>
<P>The Base Style Sheet describes the typical rendering of
all HTML 4.0 <a rel="biblioentry"
href="./refs.html#ref-HTML40" class="informref">[HTML40]</a>) elements visual
UAs. The style sheet is based on extensive research on how current UAs
render HTML, and developers are encouraged to use it as a default
style sheet in their implementations.
<P>The full presentation of some HTML elements cannot be
expressed in CSS2, including replaced elements (IMG, OBJECT),
scripting elements (SCRIPT, APPLET), form control elements, and
frame elements.
<!-- More detail about these elements needed here! -->
<PRE class="example">
/* rendered CSS1-addressable elements and all applicable non-inherited
properties set to initial values and default display types */
A, ABBR, ACRONYM, ADDRESS, BDO, BLOCKQUOTE, BODY, BUTTON, CITE, CODE,
DD, DEL, DFN, DIV, DL, DT, EM, FIELDSET, FORM, H1, H2, H3, H4, H5, H6,
IFRAME, IMG, INS, KBD, LABEL, LI, OBJECT, OL, P, Q,
SAMP, SMALL, SPAN, STRONG, SUB, SUP, UL, VAR, APPLET, BASEFONT,
B, BIG, CENTER, DIR, FONT, HR, I, MENU, PRE, S, STRIKE, TT, U {
background: transparent;
width: auto;
height: auto;
text-decoration: none;
margin: 0;
padding: 0;
border: 0;
float: none;
clear: none;
vertical-align: baseline;
list-style-image: none;
list-style-type: disc;
list-style-position: outside;
}
ADDRESS, BLOCKQUOTE, BODY, DD, DIV, DL, DT, FIELDSET, FORM, FRAME, FRAMESET
H1, H2, H3, H4, H5, H6, IFRAME, NOSCRIPT, NOFRAMES, OBJECT,
OL, P, UL, APPLET, CENTER, DIR, HR, MENU, PRE {
display: block;
}
A, ABBR, ACRONYM, BDO, BUTTON, CITE, CODE, DEL, DFN, EM, IMG, INPUT, INS,
ISINDEX, KBD, LABEL, LEGEND, MAP, Q, SAMP, SELECT, SMALL, SPAN,
STRONG, SUB, SUP, TEXTAREA, VAR, B, BASEFONT, BIG, FONT, I, S,
STRIKE, TT, U {
display: inline;
}
LI {
display: list-item;
}
/* Don't display HEAD elements */
HEAD, LINK, META, PARAM, STYLE, TITLE {
display: none;
}
/* Begin tree of inherited properties and cascades. */
BODY {
font-size: 1em;
line-height: 1.33em;
margin: 8px;
/* background flush with initial containing block edge */
background-position: -8px -8px;
word-spacing: normal;
letter-spacing: normal;
text-transform: none;
text-align: left;
text-indent: 0;
white-space: normal;
}
H1 {
font-size: 2em;
margin: .67em 0;
}
H2 {
font-size: 1.5em;
margin: .83em 0;
}
H3 {
font-size: 1.17em;
line-height: 1.17em;
margin: 1em 0;
}
H4, P, BLOCKQUOTE, UL, OL, DL, DIR, MENU {
margin: 1.33em 0;
}
H5 {
font-size: .83em;
line-height: 1.17em;
margin: 1.67em 0;
}
H6 {
font-size: .67em;
margin: 2.33em 0;
}
H1, H2, H3, H4, H5, H6, B, STRONG {
font-weight: bolder;
}
BLOCKQUOTE {
margin-left: 40px;
margin-right: 40px;
}
I, CITE, EM, VAR, ADDRESS {
font-style: italic;
}
PRE, TT, CODE, KBD, SAMP {
font-family: monospace;
}
PRE {
white-space: pre;
}
BIG {
font-size: 1.17em;
}
SMALL, SUB, SUP {
font-size: .83em;
}
SUB {
vertical-align: sub;
}
SUP {
vertical-align: super;
}
S, STRIKE, DEL {
text-decoration: line-through;
}
HR {
border: 1px inset;
}
OL, UL, DIR, MENU, DD {
margin-left: 40px;
}
OL LI {
list-style-type: decimal;
}
OL UL {
margin-top: 0;
margin-bottom: 0;
}
UL OL {
margin-top: 0;
margin-bottom: 0;
}
UL UL {
margin-top: 0;
margin-bottom: 0;
}
OL OL {
margin-top: 0;
margin-bottom: 0; /* how far to carry such contextual declarations? Exhaustive list
could be very long. */
}
U, INS {
text-decoration: underline;
}
CENTER {
text-align: center;
}
BR:before {content: "\A"}
LEGEND {
font-size: 1em;
line-height: 1.33em;
color: black;
word-spacing: normal;
letter-spacing: normal;
text-transform: none;
text-align: left;
text-indent: 0;
white-space: normal;
text-decoration: none;
margin: 1px;
padding: 1px;
border: none;
}
/* Table element rendering behavior cannot be described completely in CSS1,
yet the following declarations appear to apply. This section is likely to become
obsolete upon the deployment of a more comprehensive style sheet specification
for tables. */
TABLE { display: table }
TR { display: table-row }
THEAD { display: table-header-group }
TBODY { display: table-footer-group }
TFOOT { display: table-row-group }
COL { display: table-column }
COLGROUP { display: table-column-group }
TD, TH { display: table-cell }
CAPTION { display: table-caption }
CAPTION, COL, COLGROUP, TABLE, TBODY, TD, TFOOT, TH, THEAD, TR {
background: transparent;
text-decoration: none;
margin: 1px;
padding: 1px;
border: none;
float: none;
clear: none;
}
TABLE, TBODY, TFOOT, THEAD, TR {
display: block;
background-position: top left;
width: auto;
height: auto;
}
CAPTION, TD, TH {
display: inline;
vertical-align: baseline;
font-size: 1em;
line-height: 1.33em;
color: black;
word-spacing: normal;
letter-spacing: normal;
text-transform: none;
text-align: left;
text-indent: 0;
white-space: normal;
}
TH {
font-weight: bolder;
text-align: center;
}
CAPTION {
text-align: center;
}
/* proposed default for HTML 4.0's new ABBR/ACRONYM elements */
ABBR, ACRONYM {
font-variant: small-caps;
letter-spacing: 0.1em;
/* This is almost facetious. Should they not have any
default rendering? Uppercase transform? Not all languages
distinguish between simple abbreviations and acronyms, and
not all abbrev. should be capped. */ }
/* not part of the legacy browser default sheet, but an obvious enhancement */
OL OL LI {
list-style-type: lower-alpha;
}
OL OL OL LI {
list-style-type: lower-roman
}
/* Begin aural section */
/* The following values have been suggested by T.V. Raman. */
@media speech {
H1,H2,H3,
H4,H5,H6 { voice-family: paul; stress: 2; richness: 9; }
H1 { pitch: 1; pitch-range: 9; }
H2 { pitch: 2; pitch-range: 8; }
H3 { pitch: 3; pitch-range: 7; }
H4 { pitch: 4; pitch-range: 6; }
H5 { pitch: 5; pitch-range: 5; }
H6 { pitch: 6; pitch-range: 4; }
LI,DT,DD { pitch: 6; richness: 6; }
DT { stress: 8; }
PRE,KEY,CODE,TT { pitch: 5;
pitch-range: 0;
stress: 0;
richness: 8;
}
EM { pitch: 6; pitch-range: 6; stress: 6; richness: 5; }
STRONG { pitch: 6; pitch-range: 6; stress: 9; richness: 9; }
DFN { pitch: 7; pitch-range: 6; stress: 6; }
S,STRIKE { richness: 0; }
I { pitch: 6; pitch-range: 6; stress: 6; richness: 5 }
B { pitch: 6; pitch-range: 6; stress: 9; richness: 9; }
U { richness: 0; }
A:link { voice-family: harry; }
A:visited { voice-family: betty;}
A:active { voice-family: betty; pitch-range: 8; pitch: 8 }
}
</PRE>
</BODY>
</HTML>