What is <ol> in HTML?
The <ol> tag stands for "ordered list". It is used to create a list where the items are automatically numbered.
Common Attributes of <ol>:
-
type
-
start
-
reversed
What is <ul> in HTML?
The <ul> tag stands for "unordered list". It creates a list where the items are marked with bullets rather than numbers.
Common Attributes of <ul>:
-
type (Not supported in HTML5, but still works in some browsers)
-
compact (Obsolete attribute)
Common Element for Both: <li>
Key Difference