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 trialOnur ARSLAN
5,130 PointsWhat <pre></pre> is doing? For example, if i dont use it than when i type \n command i can not go to the next line.
<pre> is used before we open our <?php ?>
1 Answer
Daniel H.J. Chen
12,888 Points<pre></pre>
It is the HTML tag for pre-formatted text. If you put a newline character \n in your "pre" tags, then it will be parsed as a new line. Otherwise, it will be ignored by HTML.
Reference: http://www.w3schools.com/tags/tag_pre.asp
Onur ARSLAN
5,130 PointsOnur ARSLAN
5,130 PointsThank you!