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

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.

主站蜘蛛池模板: 万年县| 科技| 修水县| 合山市| 政和县| 平谷区| 桂平市| 盐城市| 毕节市| 吉木萨尔县| 佛学| 抚州市| 定日县| 侯马市| 平和县| 贡觉县| 综艺| 射阳县| 京山县| 阳谷县| 比如县| 宜川县| 犍为县| 泾源县| 泾川县| 六安市| 永泰县| 太和县| 永和县| 山阳县| 游戏| 丰都县| 龙游县| 平陆县| 兰州市| 赣州市| 宁南县| 七台河市| 洛川县| 新干县| 高邮市|