Bulleted list HTML
Prev Next
HTML List Tags ExamplesOrdered List /Numbered List (ol)The
Example
Run the Code Different list styles in ordered listApart from the normal list style, there are other styles as well. The default list will always start from 1. Suppose, you want to create an ordered list which should not start from 1, then you have to exclusively set the particular ordered list type. The Syntax of different list types: The important ordered list types are
Note/Warning/Info/Success To start ordered list from 4, the syntax is start:4. Similarly, to start from 6, the syntax will be start:6. Example of different list types in ordered list<ol type="1"> <li>Mondayli> <li>Tuesdayli> <li>Wednesdayli> ol> <ol type="a"> <li>Januaryli> <li>Februaryli> <li>Marchli> ol> <ol type="A"> <li>Aprilli> <li>Mayli> <li>Juneli> ol> <ol type="I"> <li>Julyli> <li>Augustli> <li>Septemberli> ol> <ol type="i"> <li>Octoberli> <li>Novemberli> <li>Decemberli> ol> <ol start="4"> <li>HTMLli> <li>CSSli> <li>JavaScriptli> ol> Run the Code Unordered List /Bulleted List (ul)In HTML Lists,
Example
Run the Code Follow @tutorial_brain Different bullets styles in unordered listApart from the normal bullet style, there are other styles for unordered list as well like disc, square, circle etc. Example of different bullets in unordered list
Run the Code Note/Info:
Description List /Definition List (dl)HTML and XHTML supports Description list.
Example
Run the Code Interview Questions & Answer
Ordered list It displays the elements in numbered format. It is represented by
Unordered list It displays the elements in bullet format. It is represented by
Definition list It displays elements in definition form like in dictionary. The
Prev Next Facebook Twitter Google-plus |