HTML Lists - W3Schools
Có thể bạn quan tâm
HTML lists allow web developers to group a set of related items in lists.
Example
An unordered HTML list:
- Item
- Item
- Item
- Item
An ordered HTML list:
- First item
- Second item
- Third item
- Fourth item
Unordered HTML List
An unordered list starts with the <ul> tag. Each list item starts with the <li> tag.
The list items will be marked with bullets (small black circles) by default:
Example
<ul> <li>Coffee</li> <li>Tea</li> <li>Milk</li> </ul>Try it Yourself »
Ordered HTML List
An ordered list starts with the <ol> tag. Each list item starts with the <li> tag.
The list items will be marked with numbers by default:
Example
<ol> <li>Coffee</li> <li>Tea</li> <li>Milk</li> </ol> Try it Yourself »HTML Description Lists
HTML also supports description lists.
A description list is a list of terms, with a description of each term.
The <dl> tag defines the description list, the <dt> tag defines the term (name), and the <dd> tag describes each term:
Example
<dl> <dt>Coffee</dt> <dd>- black hot drink</dd> <dt>Milk</dt> <dd>- white cold drink</dd> </dl> Try it Yourself »HTML List Tags
| Tag | Description |
|---|---|
| <ul> | Defines an unordered list |
| <ol> | Defines an ordered list |
| <li> | Defines a list item |
| <dl> | Defines a description list |
| <dt> | Defines a term in a description list |
| <dd> | Describes the term in a description list |
For a complete list of all available HTML tags, visit our HTML Tag Reference.
Video: HTML Lists
❮ Previous Next ❯ ★ +1 Sign in to track progress Từ khóa » Html List Styles Examples
-
CSS Styling Lists - W3Schools
-
CSS List Style: 20+ Examples - Shark Coder
-
List-style - CSS: Cascading Style Sheets - MDN Web Docs
-
18 CSS Lists - Free Frontend
-
HTML List Styles | Know Different Types And Ways To ... - EduCBA
-
List-style - CSS-Tricks
-
10 CSS Snippets For Adding Creativity To HTML Lists - Speckyboy
-
5 Simple And Practical CSS List Styles You Can Copy And Paste
-
12+ CSS List Style Awesome Examples - OnAirCode
-
HTML Lists · WebPlatform Docs
-
HTML Ordered, Unordered, And Definition Lists - Tutorial Republic
-
HTML Lists - W3Schools
-
Creating Lists - Learn To Code HTML & CSS - Shay Howe
-
CSS: List-style Property - TechOnTheNet