HTML OL <ol> Tag
0 3073
The <ol> tag is used for making an ordered list. An ordered list is made by using one or more <li> elements in between <ol> </ol> tags. It can be alphabetical or numerical.
For the unordered list, we apply the <ul> tag. You can give it a style using CSS.
Program:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>OL Tag </title> </head> <body> <h2>Example of OL tag</h2> <ol> <li>HTML</li> <li>CSS3</li> <li>PHP</li> <li>Jqery</li> <li>Java</li> <li>JavaScript</li> <li>SQL</li> </ol> </body> </body> </html>
Output:
Share:
Comments
Waiting for your comments