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.

Business SEO Basics Better SEO Through Code Title Tag and Meta Description

how to write a meta description

how do you write a meta description. Where do you nest it, etc. Thanks guys!

index.html
<html>
<head>
  <title>Star Wars Merchandise</title>
    <meta charset="utf-8">
  <meta description
</head>
<body>
    <p>Star Wars Merchandise</p>
    <p>Boba Fett Shirts</p>
    <p>Available in white; sizes S-M-L-XL</p>
    <p>Darth Maul Hat</p>
    <p>Available in black or white at <a href="http://hats.com">Hats.com</a></p>
</body>
</html>

The meta tag in general is placed in the head element of the HTML page, as you have - what the code is showing you however, is that the tag isn't closed. each HTML Tag should be opened with < and closed with > The description attribute is part of the meta tag and will be added thus: <meta name="description"> most likely there is going to be a following Tag in most cases, which is content="", hence the whole construct would look like this: <meta name="description" content="some random content">, but for the example above, you would simply need <meta name="description">