Most browsers will display the <li>
element with the following default values.
Example:
HTML
<!DOCTYPE html>
<html>
<body>
<style>
li {
display: list-item;
}
</style>
<h1>The ol and ul elements</h1>
<p>The ol element defines an ordered list:</p>
<ol>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
<p>The ul element defines an unordered list:</p>
<ul>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>
</body>
</html>
How to create HTML <li> Tag | HTML Tag |
How to create HTML <li> value Attribute | HTML Tag |
How to Use of the value attribute in an ordered list | HTML Tag |
How to Set different list style types (with CSS) | HTML Tag |
How to Create a list inside a list (a nested list) | HTML Tag |
How to Create a more complex nested list | HTML Tag |
How to set Default CSS Settings of <li> element | HTML Tag |
Type: | Html |
Category: | Web Tutorial |
Sub Category: | HTML Tag |
Uploaded by: | Admin |