Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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.