HTML Tag »
Có thể bạn quan tâm
Contents
- 1 Code Example
- 2 All About Lists
- 3 Lists of Items Where Order Doesn’t Matter
- 4 Attributes of <ul> HTML Tag
Code Example
<p>Unordered list items:</p> <ul> <li>Arranged in any order</li> <li>Will still make sense</li> </ul>Unordered list items:
- Arranged in any order
- Will still make sense
All About Lists
You might not know this, but web developers love lists. They use them all the time. As web developers ourselves, we took it upon ourselves to provide an extensive list tutorial that covers all of the basics: unordered lists, ordered lists, definition lists, countdown lists, nested lists–and even touches on some advanced topics.
Read our Lists Tutorial to learn pretty much all there is to know about HTML lists.
Lists of Items Where Order Doesn’t Matter
There are two primary types of lists available to web developers: ordered lists and unordered lists. If the order of the items in the list matters, use an ordered list. If the order of the items in the list does not matter, use an unordered list.
By default, ordered lists are displayed with numbers as the list item marker, and unordered lists are displayed with bullet points. As a result, many web developers and content authors will select between unordered and ordered lists based on whether they want numbers or bullet points next to their list items.
This is a mistake.
The list item marker be changed with CSS, but the semantic meaning conveyed by the choice of list type cannot be changed with CSS.
For example:
<p>You can use numbers as the list item marker for an unordered list by using some simple CSS:</p> <ul class="numbered"> <li>This is an item</li> <li>This is an item</li> <li>Looking for an item? You found one!</li> </ul> <style> .numbered { list-style-type: decimal; } </style>Here’s how that list is rendered in the browser:
Adam WoodAdam is a technical writer who specializes in developer documentation and tutorials.Attributes of <ul> HTML Tag
Attribute name | Values | Notes |
---|---|---|
<ul type=""> | Was used to set list types. |
Từ khóa » Html5 Ul Tag
-
HTML Ul Tag - W3Schools
-
- : The Unordered List Element - HTML - MDN Web Docs - Mozilla
-
HTML
- Tag - Usage, Attributes, Examples - W3docs
-
HTML
- Tag - GeeksforGeeks
-
HTML 5
- Tag
-
HTML Unordered List | HTML Bulleted List - Javatpoint
-
HTML:
- Tag - TechOnTheNet
-
HTML5
- Tag, Example Of
- Tag In Html 5 - RoseIndia.Net
-
» - HTML">
- » - HTML
-
HTML -
- Tag - Tutorialspoint
-
HTML5
- Tag - HTML Doctor
-
- Tag In HTML - Scaler Topics
-
HTML: The Ul, Ol, And Li Tags - Khan Academy
-
- Tag - TutorialBrain