Html list
Advertisements
Html list
Html list are used for arrange text in list format. Html provide three types of list.
- Ordered List or Numbered List (ol)
- Unordered List or Bulleted List (ul)
- Description List or Definition List (dl)
Ordered List
Used for display data in order format like from 1 to 10 or from a to z.
Syntax
<ol> <li>Java</li> <li>Html</li> <li>CSS</li> <li>Angularjs</li> </ol>
Result
- Java
- Html
- CSS
- Angularjs
Unordered List
This type of list display data in the form of list but just dot (.) display before line.
Syntax
<ul> <li>Java</li> <li>Html</li> <li>CSS</li> <li>Angularjs</li> </ul>
Result
- Java
- Html
- CSS
- Angularjs
Description List
Syntax
<dl> <dt>Java</dt> <dd>Jdbc</dd> <dd>Servler</dd> <dd>Jsp</dd> <dt>Html</dt> <dd>CSS</dd> <dd>JavaScript</dd> </dl>
Result
- Java
- Jdbc
- Servlet
- Jsp
- Html
- CSS
- JavaScript
Browser supported
Element | |||||
<li> | Yes | Yes | Yes | Yes | Yes |
Google Advertisment