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

adding name between <h1> and </h1>

I am using a mac and when i preview my name using < h1 > My name< / h1 > it shows exactly that in the webpage,< h1 >byname < / h1 >, not just byname……what am i doing wrong?

Hi Daniel,

Are you saying that you see the actual html instead of the result of the html?

You can post a snapshot of your workspace if you like and that might make it easier to troubleshoot your problem.

https://teamtreehouse.com/forum/workspace-snapshots

4 Answers

Remove your spaces. Never add spaces inside your tags!

<h1>Daniel Bilotta</h1>

Sorry I do actually, It wasn't showing up when I typed my question without spaces, but I was using <h1>My Name</h1>

sorry when i type < h1 > without spaces it does not show up on the board so thats the only way i could convey my message, but i was doing it without spaces

I don't understand what you mean by "My name" and "byname". Those are 2 different texts? Can you elaborate on this?

Alexandre Perron
Alexandre Perron
4,410 Points

I have the same problem on mac. Let me try to better summarize OP's question. In the video we have to type <h1 >My Name</h1> into workspace. However, when I click preview (the eye icon), it gives me a preview of the code I typed (in this case "<h 1>My Name</h1 >") instead of the formatted title header that shows in the video)

Note; I had to add spaces in the brackets, so I know this is an error

Hi Alexandre,

Can you post a snapshot of your workspace? I can try forking it and see if I get the same error, although I'm on windows.

What browser are you using and have you tried another one?