The <pre>
element is for preformatted text, so you can't put additional formatting tags inside it.
By the look of things, you would be better off using <div>
elements instead. If you want them all to appear in a typewriter font
, you can add div { font-family:monospace; }
to your CSS template.
The nesting of the lists can be fixed by keeping the nested <ol>
elements inside the parent <li>
elements, like this:
<ol class="era">
<li>Paleozoic
<ol class="period">
<li>Cambrian</li>
<li>Ordovician</li>
<li>Silurian</li>
<li>Devonian</li>
<li>Mississippian</li>
<li>Pennsylvanian</li>
<li>Permian</li>
</ol>
</li>
</ol>