<ol>
Baseline
Widely available
This feature is well established and works across many devices and browser versions. Itâs been available across browsers since â¨2015ë 7ìâ©.
HTML <ol> ììë ì ë ¬ë 목ë¡ì ëíë
ëë¤. ë³´íµ ì«ì 목ë¡ì¼ë¡ ííí©ëë¤.
ìëí´ ë³´ê¸°
<ol>
<li>Mix flour, baking powder, sugar, and salt.</li>
<li>In another bowl, mix eggs, milk, and oil.</li>
<li>Stir both mixtures together.</li>
<li>Fill muffin tray 3/4 full.</li>
<li>Bake for 20 minutes.</li>
</ol>
li {
font:
1rem "Fira Sans",
sans-serif;
margin-bottom: 0.5rem;
}
| ì½í ì¸ ì¹´í ê³ ë¦¬ |
íë¡ì° ì½í
ì¸ . ëí, ìµì íëì <li> ìì를 ììì¼ë¡ ëë¤ë©´
ëë ·í ì½í
ì¸ .
|
|---|---|
| ê°ë¥í ì½í ì¸ |
0ê° ì´ìì <li>,
<script>, <template>
ìì.
|
| íê·¸ ìëµ | ë¶ê°ë¥, ììê³¼ ëì í그를 ì¶ê°íë ê²ì íìì ëë¤. |
| ê°ë¥í ë¶ëª¨ ìì | íë¡ì° ì½í ì¸ ë¥¼ íì©íë 모ë ìì. |
| ê°ë¥í ARIA ìí |
directory, group,
listbox, menu,
menubar, radiogroup,
tablist, toolbar,
tree, presentation
|
| DOM ì¸í°íì´ì¤ | HTMLOListElement |
í¹ì±
ì´ ììë ì ì í¹ì±ì í¬í¨í©ëë¤.
reversed-
목ë¡ì ìì ìì ì¬ë¶. ì¦, ë´ë¶ì ì§ì í íëª©ì´ ììì¼ë¡ ë°°ì´ë ê²ì¸ì§ ëíë ëë¤.
start-
í목ì ì ë ììí ì.
typeì´ ë¡ë§ ì«ìë ìì´ ë¬¸ìì¸ ê²½ì°ìë ìë¼ë¹ì ì«ìë¡ ëíë¸ ì ì(1, 2, 3...)ë§ ê°ë¥í©ëë¤. ê·¸ë¬ë¯ë¡ ìì´ ë¬¸ì "d"ë ë¡ë§ ì«ì "iv"ë¶í° ì¸ë ¤ê³ íë¤ë©´start="4"를 ì¬ì©íì¸ì. type-
í목ì ì ë ì¬ì©í ì¹´ì´í° ì í.
'a'ë ì문ì ìíë²³,'A'ë ë문ì ìíë²³,'i'ë ì문ì ë¡ë§ ì«ì,'I'ë ë문ì ë¡ë§ ì«ì,'1'ë ì«ì(기본ê°)ì ëíë ëë¤.
typeì ìëì 모ë<li>ì ì ì©ëì§ë§,typeí¹ì±ì ê°ì§<li>ë ê·¸ ê°ì ëì ì¬ì©í©ëë¤.ì°¸ê³ : í목ì ê°ê°ì ì«ì/문ìë¡ ì°¸ì¡°íë 기ì ì ëë ë²ë¥ ì 문ìê° ìëë¼ë©´ CSS
list-style-typeìì±ì ëì ì¬ì©íì¸ì.
ì¬ì© ì¼ë
ë³´íµ ì ë ¬ 목ë¡ì í목ì ì ííë ì«ìë 문ì ë± ë§ì»¤ì í¨ê» íìí©ëë¤.
<ol>ê³¼ <ul>ì íìí ë§í¼ ì¤ì²©í ì ìê³ , ìë¡ êµì°¨í ìë ììµëë¤.
<ol>ê³¼ <ul>ì 모ë 목ë¡ì ëíë
ëë¤. ì°¨ì´ê° ìë¤ë©´ <ol>ììë ììê° ì¤ìíë¤ë ì ì
ëë¤. ì를 ë¤ì´,
- ë¨ê³ë³ ì리ë²
- ë´ë¹ê²ì´ì
- ììì ë³´ìì ë¹ì¨ì ë´ë¦¼ì°¨ìì¼ë¡ ì ë ¬í ìì¬ë£ 목ë¡
í목ì ìì를 ë°ê¿¨ì ë ì미ë ë°ëë¤ë©´ <ol>ì ì¬ì©íì¸ì. ê·¸ë ì§ ìì¼ë©´ <ul>ì ì¬ì©í ì ììµëë¤.
ìì
>ê°ë¨í ìì
<ol>
<li>first item</li>
<li>second item</li>
<li>third item</li>
</ol>
ë¡ë§ ì«ìë¡ í기
<ol type="i">
<li>Introduction</li>
<li>List of Greivances</li>
<li>Conclusion</li>
</ol>
start í¹ì± ì¬ì©í기
<p>Finishing places of contestants not in the winnersâ circle:</p>
<ol start="4">
<li>Speedwalk Stu</li>
<li>Saunterinâ Sam</li>
<li>Slowpoke Rodriguez</li>
</ol>
ì¤ì²© 목ë¡
<ol>
<li>first item</li>
<li>
second item
<!-- closing </li> tag not here! -->
<ol>
<li>second item first subitem</li>
<li>second item second subitem</li>
<li>second item third subitem</li>
</ol>
</li>
<!-- Here's the closing </li> tag -->
<li>third item</li>
</ol>
ì ë ¬ ëª©ë¡ ìì ë¹ì ë ¬ 목ë¡
<ol>
<li>first item</li>
<li>
second item
<!-- Look, the closing </li> tag is not placed here! -->
<ul>
<li>second item first subitem</li>
<li>second item second subitem</li>
<li>second item third subitem</li>
</ul>
</li>
<!-- Here is the closing </li> tag -->
<li>third item</li>
</ol>
ëª ì¸
| Specification |
|---|
| HTML > # the-ol-element > |
ë¸ë¼ì°ì í¸íì±
ê°ì´ 보기
- 리ì¤í¸ ê´ë ¨ ë¤ë¥¸ ìì:
<ul>,<li>,<menu> <ol>ììì ì ì©íê² ì¬ì©í ì ìë CSS ìì±- ìì를 ííí ë°©ìì ì§ì íë
list-styleìì±. - ë³µì¡í ì¤ì²© 목ë¡ì ì²ë¦¬í기 ìí CSS ì¹´ì´í°
- ë ì´ì ì¬ì©íì§ ìë
compactí¹ì±ì ëì²´í ì ìëline-height - í목ì ë¤ì¬ì°ê¸°ë¥¼ ì¡°ì í기 ìí
marginìì±.
- ìì를 ííí ë°©ìì ì§ì íë