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

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.

主站蜘蛛池模板: 翼城县| 通山县| 贵德县| 天气| 伊宁县| 江都市| 瓦房店市| 南城县| 辉县市| 牙克石市| 阜城县| 凤冈县| 泰州市| 定州市| 拉孜县| 东阳市| 拉孜县| 贡嘎县| 拜泉县| 东台市| 神池县| 关岭| 宜兰县| 和田县| 侯马市| 郧西县| 郴州市| 红原县| 留坝县| 沙坪坝区| 若尔盖县| 利辛县| 平定县| 三江| 虹口区| 肇州县| 越西县| 增城市| 舒城县| 仁寿县| 寿阳县|