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 Introduction to Workspaces

<title>Argh</title> <meta charset="utf-8"> What does the above code do in the html?

HTML basics

2 Answers

Hi there Usha Hameed!

Title tag define a title for your HTML document. Which you see can above your address bar in your browser.

<title>Argh</title>

Tag meta describe metadata within an HTML document.

<meta charset="utf-8">

In this case it tells browser that document should be displayed using utf-8 encoding.

Best regards.

Chandelor Simon
Chandelor Simon
2,242 Points

Hello Serhii - and thank you for the clarification on this question as I was also keen to know what it meant!

metadata - would a proper analogy be: I show you a graph; the little snippet beneath the graph that explains what's on the graph is the equivalent of metadata in HTML? Why is metadata not used to define the color and other changes (more specifically: what is metadata used to define in HTML?)

Additionally, should I elect to change "utf-8" to instead reflect, "utf-16" this change is not visible because it has to do with the number of blocks used to represent a character (in this case: 8 bits (8 1's and 0's)), correct? If I change this to, "utf-16" - theoretically - it would take more time to process because I'm adding more data, yes?

If the above paragraph is true: would it make the most sense to set it to, "utf-2" then (26 letters in English alphabet, so only 2 bits needed to distinguish all feasible letters used)?

Or wait - perhaps not, because of characters like: (, ), *, #, etc.

But scratch that - because I just tried it and they come up with: <meta charset="utf-2"> - so yes: would "utf-2" technically be the most efficient?

Kindly advise,

Chandelor