start

The start attribute in the <ol> element specifies the initial number for an ordered list, allowing customization beyond the default starting point of 1.

start attribute

The start attribute in HTML is applied to the <ol> (ordered list) element to indicate the starting number for the list. This attribute enables you to initiate the list from a number other than the default of 1.

Syntax

index.html
<ol start="number">

Example

Here’s an example of how to use the start attribute:

  1. Item 5
  2. Item 6
  3. Item 7
index.html
<ol start="5">
  <li>Item 5</li>
  <li>Item 6</li>
  <li>Item 7</li>
</ol>

Definition and Usage

The start attribute sets the starting value for the first item in an ordered list.

Values

  • number
    • A value consisting of letters and numbers that specifies where an ordered list should begin.

Key Points

  • Starting Point: The start attribute determines the number at which the ordered list begins.
  • Default Behavior: When the start attribute is omitted, the list defaults to starting at 1.
  • Flexibility: This attribute is helpful for resuming a list from a previous section or for customizing list presentation.

Conclusion

The start attribute allows customization of the starting number for an ordered list. It provides flexibility in defining where the list should begin. By default, an ordered list starts at 1, but this attribute can adjust the starting point as needed.