官术网_书友最值得收藏!

Lists

In almost every document, you will find the need to sum up a number of items in a list. In HTML you have the choice between an unordered list (think bullets) and an ordered list (think numbers). The HTML elements for these lists are <ul> and <ol>.

This example produces a list of colors:

<h2>Colors</h2>
<ul>
<li>red</li>
<li>green</li>
<li>blue</li>
</ul>

This will generate a list of colors, each preceded by a (round) bullet. Replacing <ul>/</ul> by <ol>/</ol> will give you a numbered list. Attributes existed to specify the shape of the bullet but these are long gone. Bullet styles are specified in CSS these days. You can even use an image file for the bullet.

A third list element that is worth looking into is <dl> or data list.

主站蜘蛛池模板: 贵港市| 广河县| 永修县| 道孚县| 贺兰县| 凤凰县| 巴彦县| 灵武市| 西盟| 宜宾县| 柳河县| 邛崃市| 漠河县| 平南县| 大足县| 平陆县| 天峨县| 通渭县| 抚顺市| 凤山市| 黄山市| 重庆市| 客服| 准格尔旗| 辉县市| 乐业县| 广宁县| 南岸区| 思茅市| 林周县| 彩票| 麟游县| 平陆县| 永平县| 安泽县| 油尖旺区| 华池县| 梁河县| 唐河县| 武夷山市| 宁海县|