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
Holly Logan
7,142 PointsWhen to use lists?
In the video "Build a Footer" on "How to make a website", we have added the gallery images as an unordered list. The Facebook and Twitter logos in the footers are not added as a list. Why is that and how do you know when to use lists?
2 Answers
Daniel Gauthier
15,000 PointsHey Holly,
Good question, and one that is linked to one of the more difficult concepts when you're just starting to learn about web development. The concept of correctly applying the skills you learn is confusing at first because there are many ways to solve common issues. Some solutions are more accepted than others in most cases, and there are definitely ways to do things that are easier and more efficient.
That said, as you learn, keep in mind that since there are many ways to create a desired effect, the important thing isn't knowing which is best at first. Just focus on using the methods you have learned to create a desired effect.
For instance, you've learned how to use an unordered list to create a gallery, but the same effect could be achieved using Flexbox, or floats, or a few other layout techniques.
It's more important to have a tool or technique you can use when you're faced with a design/development challenge than it is to figure out the 'right' way to do things. You'll find your personal favorites come natural as you learn a few different techniques, and most will have strengths and weaknesses.
As a side note, layout can be a fairly tricky beast to get a handle on, but once you learn the quirks of the methods you employ and play around with them in a few projects, it will come much more naturally.
There are a few good layout courses in the Treehouse library that can be found by searching for "layout" when the time comes.
Good luck with the course!
Holly Logan
7,142 PointsThank you Daniel and Patryk, I understand what you mean. Eager to learn!
Patryk Bernasiewicz
Courses Plus Student 10,281 PointsPatryk Bernasiewicz
Courses Plus Student 10,281 PointsExcellent answer, and actually applies not only to lists, but all techniques used when developing a website. I wish I could upvote it more than once.