Web.QHMIT
.com
Toggle navigation
☰
Home
HTML
CSS
Scripting
Database
Run
<!DOCTYPE html> <title>My Example</title> <p>To do list, in order:</p> <ol> <li>Breakfast <ol> <li>Cook food</li> <li>Eat food</li> <li>Clean up</li> </ol> </li> <li>Lunch <ol> <li>Walk to cafe</li> <li>Eat food</li> <li>Walk home</li> </ol> </li> <li>Dinner <ol> <li>Dial a pizza</li> <li>Eat food</li> <li>Throw the box in the recycle bin</li> </ol> </li> </ol> <hr> <p>Ordered lists should be used in cases where the order matters (such as a list of instructions, a list ranked by popularity or other metric, etc). In other words, changing the order would change the meaning of the list (or document).</p> <p>More info: <a href="/html/tags/html_ol_tag.cfm"><code>ol</code></a>, <a href="/html/tags/html_li_tag.cfm"><code>li</code></a>, <a href="/html/examples/html_lists_examples.cfm">list examples</a>.</p>
Preview