The OL in HTML5 has been improved, adding two new attributes to it.
Start Property:
The Start property is used to define the starting position of the list number, such as the following code, which starts at 50 51 ... 55 etc.
- <ol start= ">"
- <li> Home </li>
- <li> Reading Room </li>
- <li> my </li>
- <li> CV </li>
- <li> Community </li>
- <li> Tutorials </li>
- <li>HTML5</li>
- <li> Topics </li>
- <li> Cool Station </li>
- <li>TShirt</li>
- <li> Works </li>
- <li> College </li>
- </ol>
Copy Code
Reversed Properties:
The reversed property means that the list is reversed, but there is no browser that supports it at this point.
Run a look at the effect:
-
- <ol start= "Reversed>"
- <li> Home & Lt;/li>
- <li> reading room </li>
- & Nbsp; <li> my </li>
- <li> CV </li>
- <li> Community </li>
- & nbsp;<li> tutorial </li>
- <li>html5</li>
- & nbsp <li> special </li>
- <li> Cool Stations </li>
- <li>tshirt</li>
- <li> works </li>
- <li> College </li>
- </ol>