In the html page, the list can play the role of writing outlines. Lists are divided into two types: one is an ordered list and the other is an unordered list. The former uses bullets to mark unordered items, while the latter uses numbers to record the order of items.
The main marks for the list are shown in the following table
| mark | describe |
|---|---|
| <ul> | Unordered list |
| <ol> | Ordered list |
| <dir> | Directory list |
| <dl> | Definition list |
| <menu> | Menu List |
| <dt>, <dd> | Define the tag of the list |
| <li> | Tags for list items |
Ordered lists use numbers, not bullets, to orchestrate items. The items in the list start with numbers or English letters, and there is usually order between the items. In an ordered list, the two tags <ol> and <li> are mainly used, as well as the type and two start properties.
In the ordered list, use <ol> as the ordered declaration and <li> as the start of each project.
Create an ordered list with <ol> and <li> tags.
01 <!-- ------------------------------ -->
02 <!-- File example: 7-1.htm -->
03 <!-- File description: Create an ordered list-->
04 <!-- ------------------------------ -->
05 <html>
06 <head>
07 <title>Create an ordered list</title>
08 </head>
09 <body>
10 <h2>Image Design Software</h2>
11 <ol>
12 <li>Photoshop
13 <li>Illustrator
14 <li>Freehand
15 <li>CorelDraw
16 </ol>
17 </body>
18 </html>
Line 11 defines the type of the list as ordered, and lines 12 to lines 15 use the <li> tag as the beginning of the list item.