Smashing Magazine - we smash you with the information that will make your life easier. really.
Louis Lazaris is freelance web developer of Greek descent, based in Toronto, Canada. He runs Impressive Webs, and the newly-launched Interviews by Design that houses interviews with talented designers. You can follow Louis on Twitter or contact him through his website.
- 43 Comments
- 1
- 2
December 12th, 2009 4:28 pmPoint taken that they are highly adaptable semantically to different applications in a page…. but can they really do any more than a collection of spans in a div (apart from being semantically incorrect)?
- 2
- 3
December 11th, 2009 3:47 amGreat post – very informational. Too bad to see that none of my (I think pretty useful?) HTML lists tutorials weren’t included. Oh well – better luck next time =P.
Keep up the great work!
- 4
December 11th, 2009 4:28 amYeah, where are his lists at? Marco’s tutorials are always pretty awesome.
- 4
- 5
December 11th, 2009 4:02 amGreat post ! Thank you :)
- 6
December 11th, 2009 4:02 amAlthough the title looks very promising the article is very chaotic and I can’t find anything solid about techniques or resources (except for the list of examples which is twice as long as the article itself).
I also ’scanned’ the blog of the author and his previous article here at SM and those are perfect so I know he can do better than this.The topic of the article is perfect but the content needs some ‘redesign’.
just my two cents…
- 7
December 11th, 2009 4:09 amAwesome! Thanks for that.
- 8
December 11th, 2009 4:21 amJust an addition: the menu element is not deprecated any more in HTML5.
- 9
December 11th, 2009 4:33 amHey Louis,
Thanks for the mention! Really appreciate it. What a long article you’ve written! Very useful for people that want to know more about the power of combining HTML + CSS.
Gaya
- 10
December 11th, 2009 4:38 amExcellent post!! Very good!!!
- 11
December 11th, 2009 5:05 amWow, the teaser post did NOT do this article justice. WAY more content than I expected – love it! Some great examples to draw inspiration from, thank you.
- 12
December 11th, 2009 5:34 amNice post, good stuff.
- 13
December 11th, 2009 5:51 am“Ordered lists are used when a list of items requires a visible incrementing value before each item”
I take issue with that; it’s too tied to the design. How about:
“Ordered lists are used when the order of a list is significant”
Compare, for example, a recipe’s ingredients (whose order is /usually/ unimportant) to its instructions (whose order is *very* important!). It’s a very common error to use ul where ol is more appropriate, from a semantic point of view.
- 14
December 11th, 2009 8:48 am“Compare, for example, a recipe’s ingredients (whose order is /usually/ unimportant)”
So if I whisk the eggs before cracking them it doesn’t matter?
Back on topic, the article was ok, little bit basic though. Can’t say I learnt anything new. Maybe that wasn’t the point.
- 15
December 11th, 2009 10:26 amIf you had read the following three words, yes the order of the _instructions_ is important. That’s why you would use an UL on the ingredients, and an OL on the step-by-step instructions.
There are two types of HTML coders: those who understand semantics, and those who don’t.
- 15
- 14
- 16
December 11th, 2009 6:17 amExcellent article – thank you for the refresher. Good resources at then end as well – thanks!
- 17
December 11th, 2009 6:45 amGreat list great Ideas, thanks
- 18
December 11th, 2009 7:02 amGreat list! This page is definitely getting a bookmark it will be a nice place to point our newer web developers when they start. Also a good brush up for those of us that have been around for awhile. Thanks for taking the time to put this content together!
- 19
December 11th, 2009 7:23 amNice post though maybe it should have been titled “Browser differences in lists along with examples of drop down menus”.
I was hoping for more in depth look at some techniques to style in-text list items. Though you can’t please everyone!
- 20
December 11th, 2009 7:38 amCORRECTION: The `start` attribute is not new to HTML5, it’s part of HTML4, along with `value` to set an individual number.
- 21
December 11th, 2009 9:24 amHey ,
Where can I get some cool list-style-images?
- 22
December 11th, 2009 9:35 amRe: Adding “float: left” to List Items
The article recommends setting the LI elements to display:inline which is fine unless you need to add padding to the top or bottom of the LI. Float:left is a better option in this respect and to fix the parent UL or OL from not clearing add an overflow:auto and height:100% to it and you’ll be good to go.My second piece of advice is in regards to clickable areas, or hit targets. When using a list for navigation don’t set the width or height or add padding to the LI, add it to the A tag inside the LI. This makes the hit target bigger and easier to click.
- 23
December 11th, 2009 9:52 amGreat article, I’ve been waiting for something like this. I’d love it if you guys would do something on integrating navigation bars into a websites design. Lots of times I feel as though the nav bar in my designs is just sort of hanging there, anyway I think you know what I mean. Keep up the great work.
- 24
December 11th, 2009 9:59 amThanks for the tips.
- 25
December 11th, 2009 10:29 amlists can do any and everything
- 26
December 11th, 2009 12:45 pmthank you smashing mag. this reviewing of each tag is fantastic, please keep going.
- 27
December 11th, 2009 1:08 pmHow can you ever keep up with all of this?
- 28
December 11th, 2009 2:05 pmWow, very thorough post. Wonderful detailed overview for a beginner or intermediate user.
- 29
December 11th, 2009 2:17 pmmh somehow I have to admit that i didnt actually learn anything from this post :(
- 30
December 11th, 2009 2:39 pmUsefull, thx.
Can you drop some more articles about html 5? - 31
December 11th, 2009 2:48 pmExcellent post, and totally worth bookmarking socially so all your html-fanboy friends and colleagues can learn something.
- 32
December 11th, 2009 5:43 pmVery useful article for combining HTML + CSS. Thanks for the tips!
- 33
December 11th, 2009 7:26 pmReally awesome post! I use lists for image galleries and horizontal navigation, but I’ve never thought about using them for dropdown menus. Brilliant! Such a versatile bit of code.
- 34
December 12th, 2009 5:03 amno mega menu tips? aw I was expecting
- 35
December 12th, 2009 9:24 amexcellent tutorial… thanks
- 36
December 12th, 2009 10:50 amGreat article for combining HTML + CSS, some good techniques
- 37
December 13th, 2009 10:35 am“but they are deprecated in XHTML, so …”
that’s as irrelevant as it could be :-) - 38
December 13th, 2009 11:33 amW O W, this an awesome…thanks a lot ^_^
- 39
December 13th, 2009 2:11 pmGreat article, very useful day-to-day techniques.
- 40
December 14th, 2009 12:54 amOne thing missing is an explanation on how to spread list items evenly across a fixed width. A difficult task if you have ems or percentages to worry about. This short article runs through several methods and highlights problems and pitfalls.
- 41
December 15th, 2009 8:46 amI’d like to add to this list 2 CSS menus that are keyboard accessible and have great browser support:
http://tjkdesign.com/articles/new_drop_down/default.asp
http://tjkdesign.com/articles/keyboard_friendly_dropdown_menu/default.asp - 42
December 15th, 2009 9:57 pmIf using background images to add a marker to unordered lists, it’s important to remember that most browsers won’t print background images by default. You would need to include a media-specific rule to put some sort of marker in when it is printed.
- 43
February 5th, 2010 12:24 amThanks Smashing Magazine for this article! I saw LavaLamp effect on websties before, but couldn’t figure out what is it!
Now I put it on my portfolio Looks brilliant!
- 00
There are no trackbacks at this time. If you are interested in leaving a trackback, please use this URL.
Leave a Comment
Make sure you enter the * required information where indicated. Please also rate the article as it will help us decide future content and posts. Comments are moderated – and rel="nofollow" is in use. Please no link dropping, no keywords or domains as names; do not spam, and do not advertise!









































(24 votes, average: 4.92 out of 5)
HTML lists are the Zelig of markup code. They can do almost everything:)