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](#the-title-tag)
- The [meta description](#the-meta-description)
- [Canonical URLs](#canonical-urls)
The code for the above SEO metadata should be included in the `
` element.
For example:
> Tip:
> For another example of including metadata in a theme, you can refer to [Dawn's implementation](https://github.com/Shopify/dawn/blob/main/layout/theme.liquid).
### The title tag
You can include a `` 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/api/liquid/objects/page_title).
### The meta description
You can include a `` 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/api/liquid/objects/page_description).
### Canonical URLs
You can specify a canonical URL for a given page using the global Liquid [canonical_url object](/docs/api/liquid/objects/canonical_url).