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

Zara Zahair
40 PointsWhen completing the first program, web page on chrome shows as ‹h1›Welcome to my web page.‹/h1›
webpage in both safari and chrome when running program show webpage text as Welcome to my webpage‹h1›Welcome to my web page.‹/h1› how do I avoid this. could I'm using - alert("Hello. Thanks for visiting"); console.log("Hello from the console."); document.write("‹h1›Welcome to my web page.‹/h1›"); can't see where I am going wrong
1 Answer

Travis Alstrand
Treehouse Project ReviewerIt's hard to tell in this scenario since you're typing things directly into your browser's console, it's hard to share exactly what you've typed / what you're seeing for us to further examine it.
I just tested doing this and it worked on my end.
document.write("<h1>Welcome to my web page.</h1>");
I wouldn't worry about it too much, it's not a commonly used JavaScript command and if I remember correctly, it's not used any further, it was just demonstrated in this video as an example.
Normally you would want to target an element in the document and adjust it's content with something else like
document.body.innerHTML += "<h1>Welcome to my web page.</h1>";
You'll learn all of this soon though, I'd say keep pushing forward 👍