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
Hunter Meo4,817 Points
Why do we add the following in quotes? <p>
I was wondering why the paragraph code is added in quotes to the code.
I assume you're talking about this piece of code:
document.write('<p>You guessed the number</p>');
I thought it was quite simply to insert a paragraph element in order to be more specific with inserting the string on to the page. But I'm still learning so there you go.
because you can give a style to you <p> with css