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 trialLorenzo Leva
12,262 Pointsdocument.write
When adding string to a page with this function what is the meaning and use of this: "<h1>...</h1>" and other ones.
1 Answer
Steven Parker
231,268 PointsWhen you write strings to a web page, they can be more than just text. They can include HTML code, and those are "tags" that are used in HTML.
Those in particular define a "heading type 1", and by default the text between them will be displayed by the browser in a much larger font that normal text.
Lorenzo Leva
12,262 PointsLorenzo Leva
12,262 PointsHelpful, thanks.