OneStopTesting.com - Testing EBooks, Tutorials, Articles, Jobs, Training Institutes etc.
OneStopGate.com - Gate EBooks, Tutorials, Articles, FAQs, Jobs, Training Institutes etc.
OneStopMBA.com - MBA EBooks, Tutorials, Articles, FAQs, Jobs, Training Institutes etc.
OneStopIAS.com - IAS EBooks, Tutorials, Articles, FAQs, Jobs, Training Institutes etc.
OneStopSAP.com - SAP EBooks, Tutorials, Articles, FAQs, Jobs, Training Institutes etc.
OneStopGRE.com - of GRE EBooks, Tutorials, Articles, FAQs, Jobs, Training Institutes etc.
Order and unordered list in HTML | Articles | Recent Articles | News Article | Interesting Articles | Technology Articles | Articles On Education | Articles On Corporate | Company Articles | College Articles | Articles on Recession
Home » Articles » Order and unordered list in HTML
Order and unordered list in HTML
Article Posted On Date : Thursday, March 22, 2012
Order and unordered list in HTML
Advertisements
In this article I will tell your how to use order and unordered list. There are two tags two create an order list and unordered list. Order List You can insert numbering into your pages by simply using the <ol> (ordered list) and <li> (list item) codes. <html> <head> <title>Order list in HTML</title> </head> <body> <h1> Order list Example</h1> <ol type="i"> <li>TV <li>Sony <li>Panasonic <li>LG <li>Samsung </ol> </body> </html> You can provide different attributes to the type element like (i, I, A, a) for different numbering formats. You can also nest order list to get in other order list to get sub numbering. See the code below: <html> <head> <title>Order list in HTML</title> </head> <body> <h1> Order list Example</h1> <b>Television Models</b> <ol type="I"> <li>Samsung <ol type="i"> <li>Black & White <ol type="a"> <li>Model 1 <li> Model 2 </ol> <li>Color <ol type="a"> <li>Model 1 <li> Model 2 </ol> </ol> <li>Sony <ol type="i"> <li>Black & White <ol type="A"> <li>Model 1 <li> Model 2 </ol> <li>Color <ol type="A"> <li>Model 1 <li> Model 2 </ol> </ol> <li>Panasonic <ol type="i"> <li>B&W <li> Color </ol> <li>LG <ol type="i"> <li>Black & White <ol type="a"> <li>Model 1 <li> Model 2 </ol> <li>Color <ol type="A"> <li>Model 1 <li> Model 2 </ol> </ol> </ol> </body> </html> Unordered List You can insert bullets into your pages by simply using the <ul> (unordered list) and <li> (list item) codes. <html> <head> <title>Unordered list in HTML</title> </head> <body> <h1> Unordered list Example</h1> <ul type="circle"> <li>TV <li>Sony <li>Panasonic <li>LG <li>Samsung </ul> </body> </html> You can provide different attributes to the type element like (square, circle) for different ordering formats. You can also nest order list to get in other order list to get sub numbering. See the code below: </head> <body> <h1> Order list Example</h1> <b>Television Models</b> <ul> <li>Samsung <ul> <li>Black & White <ul> <li>Model 1 <li> Model 2 </ul> <li>Color <ul> <li>Model 1 <li> Model 2 </ul> </ul> <li>Sony <ul> <li>Black & White <ul> <li>Model 1 <li> Model 2 </ul> <li>Color <ul> <li>Model 1 <li> Model 2 </ul> </ul> <li>Panasonic <ul> <li>Black & White <li> Color </ul> <li>LG <ul> <li>Black & White <ul> <li>Model 1 <li> Model 2 </ul> <li>Color <ul> <li>Model 1 <li> Model 2 </ul> </ul> </ul> </body> </html>
Amazon.in Widgets