HTML Tag »
Maybe your like
Contents
- 1 Code Example
- 2 Display is based on list type
- 3 Browser Support for li
- 4 Attributes of li
Code Example
<ol> <li>First we do this,</li> <li>and then we do this,</li> <li>and then we do this.</li> </ol>- First we do this,
- and then we do this,
- and then we do this.
Display is based on list type
An <li> element must be a child element to either an <ol> (ordered list) element or a <ul> (unordered list) element. The <ol> defines a list with some kind of numbering system, so the list items within it will normally be prepended with a number, a Roman numeral, or a letter. The <ul> list is almost always bulleted. List items are block-level elements and contain flow content — which means (among other things) that ehy can have other lists as their content. This is how you build a nested, or multi-level list (such as outline).
<ul> <li>Things I want my son to know <ul> <li>Intangibles <ul> <li>Love</li> <li>Security</li> <li>Happiness</li> </ul> </li> <li>Tangibles <ul> <li>Colors <ul> <li>Red</li> <li>Blue</li> <li>Green</li> <li>Purple</li> <li>Orange</li> <li>Yellow</li> </ul> </li> <li>Numbers</li> <li>Letters</li> <li>Table Manners</li> </ul> </li> </ul> </li> </ul>- Things I want my son to know
- Intangibles
- Love
- Security
- Happiness
- Tangibles
- Colors
- Red
- Blue
- Green
- Purple
- Orange
- Yellow
- Numbers
- Letters
- Table Manners
- Colors
- Intangibles
Browser Support for li
![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| All | All | All | All | All | All |
Attributes of li
| Attribute name | Values | Notes |
|---|---|---|
| value | Specifies the counter value for a list item within a numbered list. | |
| type | Specifies the bullet or numbering style for an individual list item. |
Post navigation
How To Use In HTML<td nowrap>Search HTML.com
Search for:Most Popular
- <var> HTML Tag651 views
- What Is Doxing? (And Why Is It So Scary?): An Infographic67 views
- <meter> HTML Tag65 views
- The Web Worker's Stress Busting Toolbox: 50 Tips to Improve Your Life65 views
- <rp> HTML Tag29 views
Tag » What Is Li In Html
-
- : The List Item Element - HTML: HyperText Markup Language
-
HTML Li Tag - W3Schools
-
HTML
- Tag - GeeksforGeeks
-
- 태그
-
HTML
- Tag - Quackit Tutorials
-
HTML: The Ul, Ol, And Li Tags - Khan Academy
-
HTML -
- Tag - Tutorialspoint
-
HTML Li Tag-Learn HTML | W3Docs
-
HTML Li Class Attribute - Dofactory
-
HTML Li Tag And Element - HTML Tutorials - W3resource
-
HTML
- 태그 - 코딩의 시작, TCP School
-
LI - List Item - HTML Help
-
Li – List Item - HTML5
-
Lists In HTML Documents





