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

i dont understand what this task wants me to do next

Create the HTML element that will serve as the document root.

tried recreating what i learned in the lesson and keep getting this error: Bummer! Make sure you define the HTML tag for the document root.

but i'm not sure whats its asking me to do

also in the workspace i recreated what the lesson taught and when i hit preview there is nothing in the browser. Also when i put in code such as <h1> workspace doesn't automatically finish the code with </h1> like it does in the video. what am i doing wrong?

index.html
<!DOCTYPE html>
<h1>Scorpiono</h1>

3 Answers

Hi Alberta,

You have to create HTML element like < HTML ></ HTML >, it will not shown in the browser you see but only foundation of HTML process like this below

<!DOCTYPE html>
<html>

<body>
<h1>Scorpiono</h1>
</body>

</html>

You should also add your <head></head> tag just above your <body></body> tag.

"Also when i put in code such as workspace doesn't automatically finish the code with like it does in the video. what am i doing wrong?"

You're not doing anything wrong! :) Workspaces purposefully does not auto-complete the code. (I actually like this feature - I know that I tend to be able to recall something better when I've written/typed it out.)