Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
Why would you use <p> vs. <h1> in a document.write string? I don't understand what you put in there and why?
Clayton PerszykTreehouse Moderator 46,860 Points
<p> and <h1> are HTML tags and have different meanings:
<p> is a paragraph tag
<h1> is a level one heading (i.e. top level heading)
I would recommend going through a course on HTML, if this is causing confusion:
Em Har9,775 Points
The H1 tag will enlarge you the content in between the tags as its meant to be a "heading" to grab the viewers attention. The <p> tag will not enlarge the text and will keep it as a regular sentence.