The tutorials found herein have been written for clarification of existing W3C HTML 5 and HTML 4.01 (and, by extension, xHTML 1.0 as text/html) specifications through the use of real-world examples.

Some section names have been taken from HTML 5; some remain HTML 4.01. Text-Level Elements in HTML 4.01 - have become Text-Level Semantics in HTML 5 but some were reclassified as Grouping or Phrasing Content; List elements are Grouping Content but shown here as “Lists”.
compact
The compact attribute represents list compaction by User Agents (UAs). It may be found assigned with the dir, dl, menu, ol, ul elements.
[Note: This presentation attribute has been deprecated in HTML 4.01 and obsoleted in HTML 5. Therefore! Modern browsers may ignore this attribute and refuse rendering (as illustrated below).]
compact
<h3>Proper HTML Structure</h3>
<ol compact>
<li>DTD</li>
<li>HTML</li>
<li>HEAD
<ol type="i" start="1">
<li>Charset</li>
<li>title</li>
<li>description</li>
</ol>
</li>
<li>BODY
<ol type="i" start="4">
<li>DIV</li>
<li>P</li>
</ol>
</li>
</ol>
[Note: No discernible difference.]
The Elementary Standards: A Compendium of articles, tutorials and reference material regarding Web Standards, HTML and CSS Copyright ©2005-2010. All work is published by Sean Fraser under a Creative Commons License. All Rights Reserved.