HTML and CSS Reference
In-Depth Information
Add End-tag
Close all paragraphs, list items, table cells, and other nonempty elements.
Code View:
It is intended to include all the industries of the United
States concerned in French trade under the following
classifications:<p>
<ol>
<li>Machine-Tools, Wire, Transmission and Textiles
<li>Milling Machinery
<li>Electrical Apparatus
<li>Transportation
<li>Importers
<li>Synthetic Products based on chemical processes
<li>Bankers
<li>Factory Architects, Engineers and Contractors
</ol>
<p>It is intended to include all the industries of the
United States concerned in French trade under the following
classifications:</p>
<ol>
<li>Machine-Tools, Wire, Transmission and Textiles</li>
<li>Milling Machinery</li>
<li>Electrical Apparatus</li>
<li>Transportation</li>
<li>Importers</li>
<li>Synthetic Products based on chemical processes</li>
<li>Bankers</li>
<li>Factory Architects, Engineers and Contractors</li>
</ol>
Motivation
The first motivation is simply XML compatibility. XML parsers require that each start-tag be matched by a
corresponding end-tag.
However, there's a strong additional reason. Many documents do not display as intended in classic HTML when
the end-tags are omitted. The problem is not that the browsers do not know how or where to insert end-tags.
It's that authors often do not arrange the tags properly. All too often, the boundaries of an unclosed HTML
element do not fall where the author expects. The result can be a document that appears quite different from
what is expected. Indentation problems are the most common symptom (elements are not indented that should
be, or elements are indented too far). However, all sorts of display problems can result. CSS is extremely hard
to create and debug in the face of improperly closed elements.
Search WWH ::




Custom Search