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

General Discussion

Div and Span

Hi, can anyone explain to me the differences between a div and span?

3 Answers

A span is inline, such as in bolding text in the middle of a sentence.

Whereas a div is block-level, which basically means it has a line break before and after it.

Here's a blog post on a div vs span if you are still unclear on the difference between the two.

Thank you, can you tell me what is the best source code editor to use?

Coders seem to never tire of debating about their favorite text editors, so there are plenty of posts in this forum and else where about which is the "best".

2 good choices for a beginners, both of which are free:

notepad++ (for Windows) TextWrangler (for OS X)