| 清单标记
-
-
-
|
|
|
称为顺序清单标记。- 则用以标示清单项目。
所谓顺序清单就是在每一项前面加上 1,2,3... 等数目,又称编号清单。
的参数设定(常用): 例如: type="i" start="4">
- type="i"
设定数目款式,其值有五种,请参考 右表,内定为 type="1"。
- start="4"
设定开始数目,不论设定了哪一数 目款式,其值只能是 1,2,3.. 等整 数,内定为 start="1"。 |
| type |
numbering style |
| 1 |
arabic numbers |
1, 2, 3, ... |
| a |
lower alpha |
a, b, c, ... |
| a |
upper alpha |
a, b, c, ... |
| i |
lower roman |
i, ii, iii, ... |
| i |
upper roman |
i, ii, iii, ... | |
的参数设定(常用): 例如: type="square" value="4">
- type="square"
只适用于非顺序清单,设定符号款式,其值有三种,如下,内定为 type="disc": 符号 是当 type="disc" 时的列项符号。 符号 if" width=10 height=10 border=0> 是当 type="circle" 时的列项符号。 符号 是当 type="square" 时的列项符号。
- value="4"
只适用于顺序清单,设定该一项的数目,其後各项将以此作为起始数目而递增, 但前面各项则不受影响,其值只能是 1,2,3.. 等整数,没有内定值。
例子:
| html source code (原始码) |
浏览器显示结果 |
my best friends:
- michelle wei
- michael wan
- gloria lam
|
my best friends:
- michelle wei
- michael wan
- gloria lam
| |
|
|
称为无序清单标记。 所谓无序清单就是在每一项前面加上 、 、 等符号,故又称符号清单。
- type="square"
设定符号款式,其值有三种,如下,内定为 type="disc": 符号 是当 type="disc" 时的列项符号。 符号 是当 type="circle" 时的列项符号。 符号 是当 type="square" 时的列项符号。
注意:由于 及 - 都有 type 这个参数,两者尽可能选用其一。
例子:
| html source code (原始码) |
浏览器显示结果 |
my homepages:
- penpals garden
- icq garden
- software city
- creation of webpage
|
my homepages:
- penpals garden
- icq garden
- software city
- creation of webpage
| |
|
|
这两个标记都不为 w3c 所赞同,希望用者能以 及 代之。
是一样的,在一些特别的浏览器可能表现出 的 效果,于旧版的 ie 或 nc 标记 不显示符号或数目。两标记的用法与
例子:
| html source code (原始码) |
浏览器显示结果 |
my homepages: penpals garden icq garden software city creation of webpage |
my homepages:
penpals garden
icq garden
software city
creation of webpage | |
|
|
称为定义清单标记。 - 用以标示定义条目,
- 则用以标示定义内容。
所谓定义清单就是一种分二层的项目清单,其不故符号及数目。
三个标记都没有常用的参数。而 可以独立使用,只是一些旧的浏览器并不支 援,如 ie 3.0。常用的如 标记可用以制造段落第一个字前面的空白。
例子:
| 原始码 |
how to use definition list first, you should not place paragraph tag right after or before a list structure or between the items of a list. in cerntain contexts, use of extra paragraph tags should always be avoided, when you realize this concept, it is quit easy to write a html. other things to know we usually put only one definition tag following the definition term tag, more than one dd tag is not recommanded. besides, unlike definition list is a nonempty tag, both definition term and definition description are empty tags. |
| 显示结果 |
- how to use definition list
- first, you should not place paragraph tag right after or before a list structure or between the items of a list. in cerntain contexts, use of extra paragraph tags should always be avoided, when you realize this concept, it is quit easy to write a html.
- other things to know
- we usually put only one definition tag following the definition term tag, more than one dd tag is not recommanded. besides, unlike definition list is a nonempty tag, both definition term and definition description are empty tags.
| | |