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 trialDaniel Bilotta
351 Pointsadding 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?
4 Answers
Christian Andersson
8,712 PointsRemove your spaces. Never add spaces inside your tags!
<h1>Daniel Bilotta</h1>
Daniel Bilotta
351 PointsSorry I do actually, It wasn't showing up when I typed my question without spaces, but I was using <h1>My Name</h1>
Daniel Bilotta
351 Pointssorry 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
Christian Andersson
8,712 PointsI don't understand what you mean by "My name" and "byname". Those are 2 different texts? Can you elaborate on this?
Alexandre Perron
4,410 PointsI 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
Jason Anello
Courses Plus Student 94,610 PointsHi 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?
Jason Anello
Courses Plus Student 94,610 PointsJason Anello
Courses Plus Student 94,610 PointsHi 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