- Practical Web Development
- Paul Wellens
- 126字
- 2021-07-16 13:14:07
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.
推薦閱讀
- R語言數據分析從入門到精通
- Hands-On Data Structures and Algorithms with JavaScript
- Android Application Development Cookbook(Second Edition)
- VSTO開發入門教程
- Python高級編程
- Java Web程序設計
- 網站構建技術
- Android開發:從0到1 (清華開發者書庫)
- Python Web數據分析可視化:基于Django框架的開發實戰
- Android Studio開發實戰:從零基礎到App上線 (移動開發叢書)
- AI自動化測試:技術原理、平臺搭建與工程實踐
- Hadoop Blueprints
- Python滲透測試編程技術:方法與實踐(第2版)
- Flutter從0基礎到App上線
- Building Microservices with .NET Core 2.0(Second Edition)