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 Treehouse Club: HTML Publish a Story HTML Structure

I don't understand the question in Challenge 2 of 4, HTML, being: "Write in the opening and closing html tags."

As indicated in my question, what is exactly the meaning of this question?

2 Answers

Ferdinand Pretorius
Ferdinand Pretorius
18,705 Points

Hi Arjan,

I recommend you watch the video again, perhaps...

However, if you just want the answer and don't care about why it IS the answer, then here you go:

<html> <!-- This is your opening html tag -->

</html> <!-- This is your closing html tag -->

Hope this helps!

tnx a lot, just didn't quite understand the wording, now I do! rgrds A

Austin Whipple
Austin Whipple
29,725 Points

Hi Arjan,

This question is asking you to create the opening and closing tags of the HTML element, which is the root element of any HTML page. A couple of quick explanatory resources:

So for this challenge, you simple open and close the html element after your doctype declaration from the first step of the challenge:

<!DOCTYPE html>

<html>
</html>

The first tag opens the element, all the rest of the content of your page goes between the two tags, and the second tag with the slash closes the html element.

Tnx Austin! I didn't realise from the question it was that simple. Now I can continue.