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 trialJohnny Carthens
Courses Plus Student 45 PointsIssues with Heading Line
When trying to preview my heading line it brings up Nick Pettit's name instead of my own.
7 Answers
Sam Baines
4,315 PointsHi Johnny - the code for the h1 headline tag will bring up whatever is written in between the h1 tags so you need to change the name 'Nick Pettit' to your own there, like below:
<h1>Example Name</h1>
Then make sure you save your html file before you preview it in workspaces.
Johnny Carthens
Courses Plus Student 45 PointsHere's my code. <h1>Johnny Carthens</h1>
Johnny Carthens
Courses Plus Student 45 PointsFor some reason my code I put in the comments section doesn't show up
Sam Baines
4,315 PointsYou need to put your code inbetween two sets of ' ``` ' three back ticks in order for it to show up in the forums.
Johnny Carthens
Courses Plus Student 45 Points<h1>Johnny Carthens</h1>
Sam Baines
4,315 PointsWell your code is correct - the best thing to do would be to start a new html document in workspaces, re-write the basic head section with DOCTYPE etc in it compared to the last workspace you have, then in the body section put your h1 code and nothing else and see if it previews ok then? If not then maybe you have a problem with workspaces and should contact tech support.
Johnny Carthens
Courses Plus Student 45 PointsOk. Thanks for your assistance Sam.
Janice Dunn
2,391 PointsHi Johnny, I had the same issue as you where the h1 tags were still showing in the Preview, so I contacted Support regarding a possible Workspaces issue. However, I kept going to the next section "Add Style to the Page" and did the coding exercise. This time it showed up correctly in Preview, so maybe there is an issue with the first section. I am still waiting for an answer from Support but at least I was able to keep going and make some progress. I hope this helps.
Johnny Carthens
Courses Plus Student 45 PointsJohnny Carthens
Courses Plus Student 45 PointsI have my name between <h1> </h1> and have saved it. I've even deleted the automatic Nick Pettit tab and it gives me (Index of / Index.html) when previewing.
Sam Baines
4,315 PointsSam Baines
4,315 PointsIf you post your code here and then maybe someone can look through it and see for any potential errors.