91-9990449935 0120-4256464 |
HTML Ordered List | HTML Numbered ListHTML Ordered List or Numbered List displays elements in numbered format. The HTML ol tag is used for ordered list. There can be different types of numbered list:
To represent different ordered lists, there are 5 types of attributes in <ol> tag.
HTML Ordered List ExampleLet's see the example of HTML ordered list that displays 4 topics in numbered list. Here we are not defining type="1" because it is the default type. Test it NowOutput:
ol type="I"Let's see the example to display list in roman number uppercase. Test it NowOutput:
ol type="i"Let's see the example to display list in roman number lowercase. Test it NowOutput:
ol type="A"Let's see the example to display list in alphabet uppercase. Test it NowOutput:
ol type="a"Let's see the example to display list in alphabet lowercase. Test it NowOutput:
start attributeThe start attribute is used with ol tag to specify from where to start the list items. <ol type="1" start="5"> : It will show numeric values starting with "5". <ol type="A" start="5"> : It will show capital alphabets starting with "E". <ol type="a" start="5"> : It will show lower case alphabets starting with "e". <ol type="I" start="5"> : It will show Roman upper case value starting with "V". <ol type="i" start="5"> : It will show Roman lower case value starting with "v". Test it NowOutput:
Supporting Browsers
Next TopicHTML Unordered List
|