# SEO

Remix makes use of the meta method to define meta tags using key value pairs.

In the `root.tsx` file, you can find:

```tsx
export const meta: MetaFunction = () => [
  { title: "OneMix" },
  { name: "description", content: "OneMix App" },
];
```

You can add all HTML meta tags here and you can use the meta method in each of your routes. If a route does not have a meta method, the `root.tsx` meta values are used.

> **TIP:** Learn more about the meta method [here](https://remix.run/docs/en/main/route/meta).

You can also use the HTML `<meta>` tags as usual without using Remix’s meta method too.

For example, adding this:

```html
<meta property="og:url" content="<https://www.example.com/>" />
<meta
  property="og:image"
  content="<https://example.com/home-page.png>"
/>
```

in the `<head>` of you `App()` method in `root.tsx` would work the same way as it would in any HTML or React project.

### sitemap.xml

Open any sitemap generator like <https://www.xml-sitemaps.com/> and enter your site’s URL after deployment. Add the output to the `content` variable of the `routes/[sitemap.xml].tsx` file. This helps search engines to index the pages of your site.

### robots.txt

A default robots.txt file is already added at `routes/[robots.txt].tsx` which you can customize as per your needs.

### SEO Best Practices

It’s important to follow SEO best practices for you product to rank on search engine results. Here are some links that will help you:

{% embed url="<https://www.semrush.com/blog/seo-best-practices/>" %}

{% embed url="<https://www.link-assistant.com/news/html-tags-for-seo.html>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://onemix-docs.saask.ing/features/seo.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
