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

meta tag

what is a meta tag

index.html
<!doctype html>
<html>
   <head>
     <meta chareset+"utf-8">
     <title>cameron allen designer</title>
     </head>
  <body>
    <header>
    <h1>Nick Pettit</h1>
      <h2>Designer</h2>
      </header>
   <section>
    <p>Gallery will go here.</p>
    </section>
    <footer>
    <p>&copy; 2014 cameron allen.</p>
    </footer>
    </body>
  </html>

2 Answers

Roy Penrod
Roy Penrod
19,810 Points

A meta tag is a tag that gives the web browser "meta information" that describes something about the overall HTML document.

For example, the meta tag above should look like this:

<meta charset="utf-8">

It tells the browser to use the Unicode character set. If you want to learn more about what Unicode is, you can check out the Unicode website.

You don't need to understand the inner workings of Unicode to use it. Just know that specific meta tag should go in the head of every HTML page you create and you're fine.

jason chan
jason chan
31,009 Points

Meta tags are information it gives to social media and google. It's the text you see on search results. That's meta.