Numbered headings in XHTML
How can I produce automatically numbered headings using the <h1> to <h6> tags in XHTML? I have tried searching for this, but I cannot seem to find out the way to achieve this.
That is to say Code:
1. Heading level 1 |
I've seen this in the CSS specs:
http://www.w3.org/TR/CSS21/generate.html#counters Is that what you're looking for? Josh |
I tried that, but it didn't work. Maybe I'm missing something. Anybody has any examples of this?
Thanks. |
You're looking for an ordered list. There's a tutorial here: http://www.w3schools.com/html/html_lists.asp
Your exact answer is here: http://www.w3schools.com/html/tryit...._lists_ordered |
scuzzman, no. I'm not looking for ordered lists. As a matter of fact, I am quite proficient in using those ;)
In this case what I'm looking for is headline numbering. That is numbered chapters and sections using <h1> to <h6> tags to write using numbered chapters rather than un-numbered chapters. That is I want to organize my page into chapters Code:
1. Title of chapter 1 Hope that clarifies my question. |
As requested, moved to programming
|
For those interested I found that this CSS 2.1 technology (automatic numbering of heading sections) is unfortunately still poorly supported/unsupporte by most browsers other than opera.
It seems to be an older page, so I am not sure of Firefox. Check here http://www.markschenk.com/cssexp/pub...le.xml#support |
All times are GMT -5. The time now is 02:47 PM. |