What is the code for subsections in HTML?

cparkmi331

New member
If I were doing a order list the codes is:
<ol type="1">
<li> item 1
<li> item 2
</ol>
Lets say I want to make a subsection in item 1, that would section 1, subsection 1 (1.1) how would i code that?
I'm using dreamweaver so you dont need the </li> closing tag
 
First you need to correct what you have. It should be:
<ol type="1">
<li> item 1</li>
<li> item 2</li>
</ol>

The closing tags must be there because to do what you want. Look closely:

<ol type="1">
<li> item 1
<ol type="x">
<li> item 1</li>
<li> item 2</li>
</ol>
</li>
<li> item 2</li>
</ol>

As to get a numbering system of 1.1, don't think it is possible. Available are Roman numerial, Arabic, Capitol alpha, small alpha. Probably a combination of Roman for the main items and Arabic would appear best.

You subsection could also be an unordered list which would provide bullets for the listed items.
 
Back
Top