Horje

How to set Default CSS Settings of <li> element

Most browsers will display the <li> element with the following default values.

index.html
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>

Output should be:

How to set Default CSS Settings of <li> element




Type:
html
Category:
Web Tutorial
Sub Category:
HTML Tag
Uploaded by:
Admin