# Metadata

> Output SEO metadata in a Shoplazza Theme's head element: the title tag, the meta description, and canonical URLs, with the Liquid objects behind each one.

You can include search engine optimization (SEO) metadata in your theme using HTML and Liquid. There are three main aspects to consider:

* The [title tag](./metadata#the-title-tag)
* The [meta description](./metadata#the-meta-description)
* [Canonical URLs](./metadata#canonical-urls)

The code for the above SEO metadata should be included in the `<head>` element.

For example:

```html title="layout/theme.liquid"
<head>
  <title>{{ page_title | default: shop.name }}</title>
  <meta name="description" content="{{ page_description | default: shop.name | escape | truncatebytes: 320, "" }}">
  <link rel="canonical" href="{{ canonical_url }}">
</head>
```

### The title tag

You can include a `<title>` element for search engines to read the page title from. The title for most pages can be set in the admin, and you can access this title with the Liquid [page\_title object](/docs/theme/references/liquid/objects/page_title).

### The meta description

You can include a `<meta>` element for search engines to read the page description from. The description for most pages can be set in the admin, and you can access this description with the Liquid [page\_description object](/docs/theme/references/liquid/objects/page_description).

### Canonical URLs

You can specify a canonical URL for a given page using the global Liquid [canonical\_url object](/docs/theme/references/liquid/objects/canonical_url).
