HTML Tag - GeeksforGeeks
Có thể bạn quan tâm
The HTML <ul> tag defines an unordered (bulleted) list. Use the <ul> tag together with the <li> tag to create unordered lists. List items (<li>) are nested within <ul>, allowing the display of items without a specific order, typically represented by bullet points in browsers.
HTML <!DOCTYPE html> <html> <body> <h2>Laptop accessories</h2> <ul> <li>Mouse</li> <li>Keyboard</li> <li>Speaker</li> <li>Monitor</li> </ul> </body> </html>Attributes
Attribute | Description |
---|---|
HTML <ul> compact Attribute | Renders the list smaller. |
HTML <ul> type Attribute | Specifies the kind of marker used in the list. Values include disc, circle, square, etc. |
Note: The <ul> attributes are not supported by HTML 5.
Types of List Styles:
The list-style-type property defines the type of bullets:
- disc (default): Solid round bullets.
- circle: Hollow bullets.
- square: Square bullets.
- none: No bullets.
Nested unordered list
A nested unordered list allows creating multi-level hierarchies by placing a <ul> inside an <li>.
HTML <!DOCTYPE html> <html> <head> <title>Nested unordered list</title> </head> <body> <h2>Welcome To GeeksforGeeks</h2> <ul> <li>Hardware</li> <li> Software <ul> <li>System Software</li> <li>Application Software</li> </ul> </li> <li>MacBook</li> </ul> </body> </html>S
Sabya_Samadder Follow Improve Next Article HTML <!-- ... --> TagTừ 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 5
- Tag
-
HTML Unordered List | HTML Bulleted List - Javatpoint
-
HTML:
- Tag - TechOnTheNet
-
HTML5
- Tag, Example Of
- Tag In Html 5 - RoseIndia.Net
-
- HTML Tag »
-
» - 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