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

CSS Build a Simple Website Text Editors and HTML Images and Lists

Dean Onizuka
Dean Onizuka
4,753 Points

purpose of this meta tag

made simple websites before without the use of a meta tag. can anyone explain to me the purpose of this tag and what it does?

<meta charset="utf-8">

2 Answers

meta data is basically information about the data on the page. It isn't displayed but is read by web crawlers or for example search engines like google.

For example:

<meta name="description" content="blog about coding">

Here I'm telling google that the data is a "description" of the site, and the description is "blog about coding".

you can use meta for many things including keywords like below:

<meta name="keywords" content="ruby, ios, python, rails, programming">

So here I'm just telling google about what keywords to index my site by.

Hello Dean,

The meta tag is for non-user information. For instance it can contain information for use by the browser, like the title of the webpage, or search engines, like keywords to describe the page.

-Agapito