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

CSS How to Make a Website Beginning HTML and CSS Follow Along with Workspaces

Johnny Carthens
PLUS
Johnny Carthens
Courses Plus Student 45 Points

Issues 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
Sam Baines
4,315 Points

Hi 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
Johnny Carthens
Courses Plus Student 45 Points

I 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
Sam Baines
4,315 Points

If you post your code here and then maybe someone can look through it and see for any potential errors.

Johnny Carthens
PLUS
Johnny Carthens
Courses Plus Student 45 Points

For some reason my code I put in the comments section doesn't show up

Sam Baines
Sam Baines
4,315 Points

You need to put your code inbetween two sets of ' ``` ' three back ticks in order for it to show up in the forums.

Sam Baines
Sam Baines
4,315 Points

Well 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.

Janice Dunn
Janice Dunn
2,391 Points

Hi 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.