Hacker News new | ask | show | jobs
by duderific 3720 days ago
I've always felt a little uncomfortable using <ul> for a horizontal nav bar (although I'm aware that is a common usage). <ul> is a block level element and so is not semantically correct for a horizontal set of elements.
1 comments

> <ul> is a block level element

This just happens to be the default style. At its core, <ul> is an unordered list. Whether you happen to arrange the items horizontally, vertically, or any other way, is just presentation. Which is precisely why CSS is separate from HTML.