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 Adding Pages to a Website Add Iconography

Why add icons as a background image

In this video we added icons to the contact fields as a background image. Why don't just add an <img> element inside each <li> item and float it by <p> element with appropriate contact information?

2 Answers

You could do that but that means you will have another html element to worry about. You could encounter some small problems of alignment when you test your website on a smartphone or tablet or even an older browser like Internet explorer 8 ,7,6 etc.

makes sense. Thanks!