Core HTML

Nested Lists

A nested list is used to present outlines of writings. Nested lists can be of any type: ordered list, unordered lists, or a mixture of lists.

GoodAndEvil.html

<!DOCTYPE html>
<html>
<head>
  <title>XoaX.net's HTML Nested List Example</title>
</head>
<body>
  <h3>Outline: The Methodology of Good and Evil</h3>
  <ol>
    <li>The Virtue of Prudence<ol>
      <li>Prayer</li>
      <li>Studying Scripture</li>
    </ol></li>
    <li>The Virtue of Temperance<ol>
      <li>Fasting</li>
    </ol></li>
    <li>The Establishment of Freewill<ol>
    	<li>Sirach</li>
    	<li>God's Words to Cain</li>
    </ol></li>
  	<li>Pride and Humiliation<ol>
  	  <li>Question</li>
  	  <li>Denial</li>
  	  <li>Mockery</li>
  	</ol></li>
  	<li>Envy and Materialism</li>
  	<li>Despair and Inevitability<ol>
  	  <li>The Pretense of Progress</li>
  	  <li>The Denial of Freewill</li>
  	</ol></li>
  </ol>
</body>
</html>
 

Output

 
 

© 2007–2024 XoaX.net LLC. All rights reserved.