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
karimahajjaj
604 PointsDiv and Span
Hi, can anyone explain to me the differences between a div and span?
3 Answers
James Barnett
39,199 PointsA 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.
karimahajjaj
604 PointsThank you, can you tell me what is the best source code editor to use?
James Barnett
39,199 PointsCoders 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)