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.
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.
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.