HTML <ol> Tag: The HTML<ol> tag defines an ordered list and it can be numerical or alphabetical. This HTML ol tag supports both the global and the event attributes. By using <li>tag it defines the list.
HTML<ol>Tag
Syntax: <ol> Text </ol>
Browser compatibility
The HTML<ol> tag is supported by different types of browsers.
- Chrome
- Firefox
- Opera
- Safari
- Internet Explorer
Example:
<!DOCTYPE html> <html> <body> <ol> <li>HTML</li> <li>CSS</li> <li>JAVA</li> </ol> <ol start="50"> <li>CSS</li> <li>JAVA</li> <li>HTML</li> </ol> </body> </html>
Output:
1. HTML
2. CSS
3. JAVA
50. CSS
51. JAVA
52. HTML