-
Notifications
You must be signed in to change notification settings - Fork 790
Expand file tree
/
Copy pathsample.src
More file actions
259 lines (209 loc) · 4.91 KB
/
sample.src
File metadata and controls
259 lines (209 loc) · 4.91 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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html lang="en">
<!-- $Id: sample.src,v 1.10 1997-10-29 10:01:08 howcome 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>
<LINK rel="next" href="changes.html">
<LINK rel="previous" href="aural.html">
<LINK rel="STYLESHEET" href="style/default.css" type="text/css">
</HEAD>
<BODY>
<H1 align="center">Appendix A: A sample style sheet for HTML 4.0</H1>
<P><em>This appendix is informative, not normative.</em></P>
<P>The Base Stylesheet describes the typical rendering of
all HTML 4.0 <a rel="biblioentry"
href="./refs.html#ref-HTML40">[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.
<PRE>
/* rendered CSS1-addressable elements and all applicable non-inherited
properties set to initial values and default display types */
A, 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, 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, H1, H2, H3, H4, H5,
H6, IFRAME, OBJECT, OL, P, UL, APPLET, CENTER, DIR, HR, MENU, PRE {
display: block;
}
A, ACRONYM, BDO, BUTTON, CITE, CODE, DEL, DFN, EM, IMG, INS, KBD, LABEL, Q,
SAMP, SMALL, SPAN, STRONG, SUB, SUP, VAR, B, BIG, FONT, I, S, STRIKE, TT, U {
display: inline;
}
LI {
display: list-item;
}
/* Begin tree of inherited properties and cascades. */
BODY {
font-size: 1em;
line-height: 1.33em;
margin: 8px;
background-position: -8px -8px; /* flush with canvas edge */
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;
}
/* 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 stylesheet specification
for tables. */
CAPTION, COL, COLGROUP, LEGEND, 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, LEGEND, 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 ACRONYM element */
ACRONYM {
font-variant: small-caps;
letter-spacing: 0.1em; /* This is almost facetious. Should ACRONYM 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
}
</PRE>
</BODY>
</HTML>