HTML - attributes - start

revision:


Content

"start" attribute : specifies the first list item in ordered list syntax some examples


"start" attribute : specifies the first list item in ordered list

top

The start attribute specifies the start value of the first list item in an ordered list. The start attribute can be used on the following element: <ol>.


syntax

top

<ol start="value"></ol>

Attribute values: it contains a numeric value which defines the start value of the first list item in an ordered list.


some examples

top
  1. Coffee
  2. Tea
  3. Milk
  1. Coffee
  2. Tea
  3. Milk
codes:
                    <ol start="50">
                        <li>Coffee</li>
                        <li>Tea</li>
                        <li>Milk</li>
                    </ol>
                    
                    <ol type="I" start="50">
                        <li>Coffee</li>
                        <li>Tea</li>
                        <li>Milk</li>
                    </ol>
                

Sorting algorithms

  1. Bubble sort
  2. Merge sort
  3. Quick sort
codes:
                    <p class="spec">Sorting algorithms</p>
            
                    <ol start="7">
                        <li>Bubble sort</li>
                        <li>Merge sort</li>
                        <li>Quick sort</li>
                    </ol>