<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
"http://www.w3.org/TR/REC-html40/strict.dtd">
<html>
<head>
<title>Figure 12-31</title>
<style type="text/css">
ol {counter-reset: ordered;}
ol li {display: block; margin-left: .5em;}
ol li:before {counter-increment: ordered;
content: counters(ordered,".") ": ";}
</style>
</head>
<body>
<ol>
<li>Lists
<ol>
<li>Types of Lists</li>
<li>List Item Images</li>
<li>List Marker Positions</li>
<li>List Styles in Shorthand</li>
<li>List Layout</li>
</ol></li>
<li>Generated Content
<ol>
<li>Inserting Generated Content
<ol>
<li>Generated Content and Run-In Content</li>
</ol></li>
<li>Specifying Content
<ol>
<li>Inserting Attribute Values</li>
<li>Generated Quotes</li>
</ol></li>
<li>Counters
<ol>
<li>Resetting and Incrementing</li>
<li>Using Counters</li>
<li>Counters and Scope</li>
</ol></li>
</ol></li>
<li>Conclusion</li>
</ol>
</body>
</html>
The above code will create table of content as follows, you can change it by customizing style sheet as per your requirements:
- Lists
- Types of Lists
- List Item Images
- List Marker Positions
- List Styles in Shorthand
- List Layout
- Generated Content
- Inserting Generated Content
- Generated Content and Run-In Content
- Specifying Content
- Inserting Attribute Values
- Generated Quotes
- Counters
- Resetting and Incrementing
- Using Counters
- Counters and Scope
- Inserting Generated Content
- Conclusion
No comments:
Post a Comment