|
1 | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
2 | 2 | <html lang="en"> |
3 | | -<!-- $Id: conform.src,v 2.24 1998-03-20 09:39:24 bbos Exp $ --> |
| 3 | +<!-- $Id: conform.src,v 2.25 1998-03-20 18:55:33 bbos Exp $ --> |
4 | 4 | <HEAD> |
5 | 5 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> |
6 | 6 | <TITLE>Conformance: requirements and recommendations</TITLE> |
@@ -164,37 +164,6 @@ element|element::following">Following element</span></strong> |
164 | 164 | <dd>An element A is called a following element of an element B, if and |
165 | 165 | only if B is a preceding element of A. |
166 | 166 |
|
167 | | -<div class="html-example"> |
168 | | -<p>Here is an example of a source document encoded in HTML: |
169 | | - |
170 | | -<PRE> |
171 | | -<HTML> |
172 | | - <TITLE>My home page</TITLE> |
173 | | - <BODY> |
174 | | - <H1>My home page</H1> |
175 | | - <P>Welcome to my home page! Let me tell you about my favorite |
176 | | - composers: |
177 | | - <UL> |
178 | | - <LI> Elvis Costello |
179 | | - <LI> Johannes Brahms |
180 | | - <LI> Georges Brassens |
181 | | - </UL> |
182 | | - </BODY> |
183 | | -</HTML> |
184 | | -</PRE> |
185 | | - |
186 | | -<P>This results in the following tree:</P> |
187 | | - |
188 | | -<P><IMG src="images/doctree.gif" alt="Sample document tree"></p> |
189 | | - |
190 | | -<P>According to the definition of HTML, HEAD elements will be inferred |
191 | | -during parsing and become part of the document tree even if the HEAD |
192 | | -tags are not in the document source. Similarly, the parser knows where |
193 | | -the P and LIs end, even though there are no </P> and </LI> tags |
194 | | -in the source. |
195 | | -</div> |
196 | | -</dd> |
197 | | - |
198 | 167 | <!-- |
199 | 168 | <dt> |
200 | 169 | <span class="index-def" title="anonymous content"> |
@@ -235,6 +204,37 @@ document, read it aloud, cause it to be printed, convert it |
235 | 204 | to another format, etc.</dd> |
236 | 205 | </dl> |
237 | 206 |
|
| 207 | +<div class="html-example"> |
| 208 | +<p>Here is an example of a source document encoded in HTML: |
| 209 | + |
| 210 | +<PRE> |
| 211 | +<HTML> |
| 212 | + <TITLE>My home page</TITLE> |
| 213 | + <BODY> |
| 214 | + <H1>My home page</H1> |
| 215 | + <P>Welcome to my home page! Let me tell you about my favorite |
| 216 | + composers: |
| 217 | + <UL> |
| 218 | + <LI> Elvis Costello |
| 219 | + <LI> Johannes Brahms |
| 220 | + <LI> Georges Brassens |
| 221 | + </UL> |
| 222 | + </BODY> |
| 223 | +</HTML> |
| 224 | +</PRE> |
| 225 | + |
| 226 | +<P>This results in the following tree:</P> |
| 227 | + |
| 228 | +<P><IMG src="images/doctree.gif" alt="Sample document tree"></p> |
| 229 | + |
| 230 | +<P>According to the definition of HTML, HEAD elements will be inferred |
| 231 | +during parsing and become part of the document tree even if the HEAD |
| 232 | +tags are not in the document source. Similarly, the parser knows where |
| 233 | +the P and LIs end, even though there are no </P> and </LI> tags |
| 234 | +in the source. |
| 235 | +</div> |
| 236 | + |
| 237 | + |
238 | 238 | <h2><a name="conformance">Conformance</a></h2> |
239 | 239 |
|
240 | 240 | <P>This section defines <span class="index-def" |
|
0 commit comments