Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS

Rodrigo Novaes
Rodrigo Novaes
9,629 Points

Does Flexbox eliminate the usage of ul or ol on navbars or menus ?

Since you can now make menus and nav bars using just normal divs.

What is the best practice?

1 Answer

Steven Parker
Steven Parker
230,230 Points

"Best practice" is to use the HTML to logically group the content. Generally "div" is a generic last resort, and the newer semantic containers (like "section", "article", "aside") are preferred to convey a sense of the content's purpose.

And an "ol" or "ul" is still a good choice for any kind of list, with CSS giving it the desired appearance.