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

HTML How to Make a Website Creating HTML Content Build the Footer

Sahar Nasiri
Sahar Nasiri
7,454 Points

Adding Images

I don't get why we used li or list for images we added in section and now in the footer we don't do the same? What's different? what we are trying to do with ul and li ?

2 Answers

jason chan
jason chan
31,009 Points

You use lists because that's how you list items. LAter on when you learn programing you will list through the images.

You know those gallery sliders. You just write some code to list them instead of list every single image file by hand.

Sahar Nasiri
Sahar Nasiri
7,454 Points

Thank u for your great answer;)

akak
akak
29,446 Points

It's good practice to keep layout separate form the content. In main section you use ul and li in html to add page contant. Stuff like heading, nav and footer are layout (usually the same thru multiple subpages) so all images there are added in CSS.

Sahar Nasiri
Sahar Nasiri
7,454 Points

I'm not sure I get it right. Are you saying that we add list when we want to go to another page which has correlation with the current page? ( Like "About" an "Profolio" and so on, which are the pages that are related to our main page but facebook page is whole another page and different from our pages flow.)