Coding style in tag-based languages
HTML is typically formatted to show structural containment:
<h1>Topic</h1>
<p>Some paragraph.</p>
<p>Next para.</p>
<ul>
<li>item 1</li>
<li>item 2</li>
</ul>
Code is typically formatted to show flow-of-control:
node = tree.append "Topic 1"
node.append "Some paragraph."
node.append "Next para."
list …