- 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.
推薦閱讀
- Implementing Modern DevOps
- HTML5移動Web開發技術
- CentOS 7 Server Deployment Cookbook
- Instant QlikView 11 Application Development
- 全棧自動化測試實戰:基于TestNG、HttpClient、Selenium和Appium
- Flutter跨平臺開發入門與實戰
- 深度學習:Java語言實現
- INSTANT Sinatra Starter
- Swift 4 Protocol-Oriented Programming(Third Edition)
- Visual Studio Code 權威指南
- Hands-On Neural Network Programming with C#
- Spring 5 Design Patterns
- SQL Server 入門很輕松(微課超值版)
- PHP 8從入門到精通(視頻教學版)
- Beginning C# 7 Hands-On:The Core Language