I want to create a ordered html list like this:
1.0 Introduction
1.1 Features
1.2 Readme
1.3 Thanks
...
How do I do this with html?
I want to create a ordered html list like this:
1.0 Introduction
1.1 Features
1.2 Readme
1.3 Thanks
...
How do I do this with html?
Counter's are the way to go. See this fiddle which goes three levels deep.
Your question is answered here
Can ordered list produce result that looks like 1.1, 1.2, 1.3 (instead of just 1, 2, 3, ...) with css?
The following style sheet numbers nested list items as "1", "1.1", "1.1.1", etc.
Maybe you can edit your question to avoid duplicating questions. Pointing to that one I just told you.
You'll need to use the CSS
counter-increment
(and possibly thecounter-reset
) property.http://www.w3schools.com/cssref/pr_gen_counter-increment.asp