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 trialOksana Koyfman
6,649 PointsWhy instead of numerous <br> tags we simply do not use <pre></pre> tags with many empty lines in between?
Why instead of numerous <br> tags we simply do not use <pre></pre> tags with many empty lines in between?
1 Answer
David Todd
18,439 PointsAs with most HTML tags 'pre has it's own semantic meaning, the role of a 'br' tag is specifically for a line break.
This being said, you should avoid using HTML methods to give elements more vertical spacing, you should define spacing for elements using CSS, this will give you more versatile and reliable results across browsers.
Oksana Koyfman
6,649 PointsOksana Koyfman
6,649 PointsI see. Thank you.