How can I print only an ordered list of 6 using html?

How can I print an ordered list from number 6 only with html (if it is impossible to do, how to do it)?

Example:

6.home

7.place

8.etc ..

9.etc ..

thank

+3
source share
4 answers

Use attribute start:

<ol start=6>
  <li>home</li>
  <li>place</li>
  ...
</ol>

Please note that its use is outdated, so you should not use it in new documents. W3C recommends replacing its use of CSS Counters .

( , , , , . , , , .)

+7

HTML:

<ol>
<li value="6">test</li>
<li>This should be 7</li>
</ol>

, reset , - . , CSS, .

+2

<ol start="6">
  <li></li>
  <li></li>
</ol>

, w3.org OL...

+1

, ( IE). , start.

CSS:

.hideme { display:inline;}

HTML:

<ol id="num">
    <li class="hideme"></li>
    <li class="hideme"></li>
    <li class="hideme"></li>
    <li class="hideme"></li>
    <li class="hideme"></li>    
    <li>home</li>
    <li>place</li>
    <li>etc</li>
    <li>etc</li>
    <li>etc</li>
    <li>..</li>
</ol>

, .

+1

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


All Articles