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 trialArshad Gharajally
Courses Plus Student 39 PointsWhy do we have to put <h1> and </h1> and what does it mean?
I'm curious to know why do we put <h1> and </h1> in document.write section and not in alert section can you please help
1 Answer
Esteban Cazorla
5,714 Points<h1>
is an HTML tag that means that the text you are displaying is a header. Normally you should use it to display the main header of your website, with an special styling.
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Heading_Elements