html - Define <OL> start value -
building on post found @ ordered lists <ol>, starting index xhtml strict?, wondering if there way define start value of list without using css , still compliant conforming strict dtd specification? looking solution of "value" attribute assigned tag li
.
can start numerical value? able commence specific alphabet example?
correct way:
<ol> <li value='10'>item</li> <li>item</li> <li>item</li> </ol>
correct, deprecated
<ol start='20'> <li>item</li> <li>item</li> <li>item</li> </ol>
ugly hack xd
<style> li.hidden { visibility: hidden; height: 0px; font-size: 0px; /* don't try display:none, trust me */ } </style> <ol> <li class='hidden'></li> <li class='hidden'></li> <li class='hidden'></li> <li>item 4</li> <li>item 5</li> <li>item 6</li> </ol>
Comments
Post a Comment