0
<!DOCTYPE html>
<html>
<body>
 <h1>The ol and ul elements</h1>
 <p>The ol element defines an ordered list:</p>
<ol>
  <li>Java</li>
  <li>PHP</li>
  <li>JavaScript</li>
</ol>
 <p>The ul element defines an unordered list:</p>
<ul>
   <li>Java</li>
  <li>PHP</li>
  <li>JavaScript</li>
</ul>
 </body>
</html>

Output:
The ol and ul elements
The ol element defines an ordered list:

  1. Java
  2. PHP
  3. JavaScript

The ul element defines an unordered list:

  • Java
  • PHP
  • JavaScript
Use of ol and ul elements in HTML
Expert Asked question July 18, 2023