September 12th, 2006, 05:20 AM
What's the difference between <ul> and <ol>?
What is the difference between these two snippets of code?
I know ul stands for unordered list and ol for ordered list but the two examples above are the same, right?
September 12th, 2006, 07:28 AM
I guess it depends on your definition of "same." One uses <ul> while the other uses <ol>, so no, they're not the same. But they do both create a list, so that's the same.
An unordered list uses discs, squares, images, etc as the bullet, and an ordered list uses numbers.
CSS List Properites
Explain your problem instead of asking how to do what you decided was the solution.
September 12th, 2006, 07:38 AM
Semantically they are slightly different. An unordered list indicates that the order of the items doesn't matter, while an ordered list indicates that items are in some kind of significant order.