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 trialVani Duddella
101 PointsWhen I preview my name in the browser, it comes along with the h1 tags, is that normal, as I see your name individually
This question is in relation to learning to write our name in HTML in workspace
Vani Duddella
101 Points<h1> Vani </h1>
Is that how it should be? I tried adding color element to it, it still shows the whole syntax in the web browser when I preview.
Kenneth Kimbrell
Courses Plus Student 6,816 Points<h1>Hello, World!</h1>
Is the proper syntax
Kenneth Kimbrell
Courses Plus Student 6,816 PointsIf you want to add color properties, you should use CSS. However there are ways to style your tags within HTML.
<h1 style="color:green;">Hello, World</h1>
3 Answers
Ted Sumner
Courses Plus Student 17,967 PointsThe usual problem is the lack of html or body tags. It should look something like this.
<html>
<body>
<h1>name</h1>
</body>
</html>
Vani Duddella
101 PointsThank you. I will try this as am a complete novice and trying my hand on learning IT for the first time.
Kenneth Kimbrell
Courses Plus Student 6,816 Points<h1>Hello, World!</h1>
Is the proper syntax
Vani Duddella
101 PointsThank you I will try this.
Vani Duddella
101 PointsHi Kenneth, It works if I write the syntax as Ted mentioned, but for Nick in the videos he just writes it out with h1 tags, I mean without the body and html inserts.
Ted Sumner
Courses Plus Student 17,967 PointsI am not sure why it works that way in the video. They may have made changes to Workspaces after the video was made.
Kenneth Kimbrell
Courses Plus Student 6,816 PointsKenneth Kimbrell
Courses Plus Student 6,816 Pointswith my experience with HTML that is not normal. Make sure your tags are properly placed and try again.
Remember that all tags have a closing tag as well.