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

HTML How to Make a Website HTML First Use HTML Elements

How do you do the code for the heading in the html tag? How can I remember it easily?

What is the code for the head

index.html

4 Answers

Mitchell Springer
Mitchell Springer
2,576 Points

Do you mean this?

<!DOCTYPE html>
<head>
<title></title>
<meta charset="utf-8"></meta>
</head>

If I forget, sometimes I just go to www.example.com and right click and click inspect element. Its a very simple website that'll give you the code you need to start the html page.

Happy .
Happy .
11,414 Points

Do you mean the links to CSS, meta, title, etc. ? Create a template, that you can modify on a per project basis. Base it off one of the most recent workspaces you've used.

Dan Garrison
Dan Garrison
22,457 Points

To be honest...I don't. I usually just look it up or copy it from previous project. That being said I have learned the HTML header just through repetition. It's actually how I learn the syntax for most languages. I use reference documentation as I need it and eventually there are things that I don't need to look up anymore.

William Li
PLUS
William Li
Courses Plus Student 26,868 Points

Yeah, agree with Dan Garrison 's point here, learning through repetition is the way to go, as you use it more and more, html tags will become second nature to you.

For starters, sites like JS Bin and CodePen are very useful tools, they provide live rendering of the page as you type the HTML code, this kind of visual feedback is invaluable in demystifying how each HTML tag is impacting the overall look and feel of a page.