w3resource logo


HTML Text - HTML tutorials

HTML Lists

Secondary Nav

Introduction to Lists

1. HTML Lists are used to create a list of information in an HTML page.

2. HTML Lists may contain (i) Unordered Information (ii) Ordered Information (iii) Definitions.

3. Unordered Information can be presented using ul and li elements.

4. Ordered Information can be presented using ol and li elements.

5. Definitions can be presented using dl, dt and dd elements.

6. There are two more elements dir and menu may also be used to create multi column directory list and single column list. But these elements are deprecated.

7. HTML Lists should not be used for indenting text. It should be used for creating a list of information only. In modern web design trends, navigation is a good example of using lists.

Following is an unordered list (a list of tutorials)

  • HTML tutorials
  • CSS tutorials
  • JavaScript tutorials
  • PHP tutorials
  • SQL tutorials
  • MySQL tutorials

Following is an ordered list (list of features of w3r tutorials)

ordered

Following is a definition list (list of features of w3r tutorials)

definition



Join our Question Answer community to learn and share your programming knowledge.

Help the community:

PHP: Loop

JavaScript: Delete duplicates in an array

Oracle: Round the number