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

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.

主站蜘蛛池模板: 石渠县| 衡东县| 瓮安县| 江孜县| 肥乡县| 汉中市| 新兴县| 丹阳市| 惠水县| 多伦县| 慈利县| 鄂托克前旗| 呼和浩特市| 卓资县| 永州市| 辛集市| 平舆县| 敦煌市| 安义县| 海淀区| 金堂县| 枣强县| 盐津县| 高邑县| 勃利县| 方城县| 甘洛县| 云梦县| 玛曲县| 沅江市| 新乡县| 星子县| 寿宁县| 龙游县| 叙永县| 阜阳市| 静安区| 合作市| 古蔺县| 利辛县| 同德县|