How to run an ordered list of 2 not 1 with w3c validity and compatibility with IE 6?

How to run an ordered list of 2 not 1?

with all browser compatibility, including IE6 and html css, must bevalid

+3
source share
4 answers

The easiest way i see is to put the first LIone but hide it using css

+1
source

this can be done directly via html with attribute start

<ol start="2">
  <li>item two</li>
  <li>item three</li>
</ol>

it is not possible with css only, and it seems that IE does not support the attribute start...

+9
source

3.1, .

<li style="visibility:hidden; position:absolute;">&nbsp;</li>
+1

Source: https://habr.com/ru/post/1743771/


All Articles