---
title: "Liquid filters: link_to"
description: Generates an HTML `` tag.
api_name: liquid
source_url:
html: https://shopify.dev/docs/api/liquid/filters/link_to
md: https://shopify.dev/docs/api/liquid/filters/link_to.md
---
# link\_to
```oobleck
string | link_to: string
```
returns [string](https://shopify.dev/docs/api/liquid/basics#string)
Generates an HTML `` tag.
```liquid
{{ 'Shopify' | link_to: 'https://www.shopify.com' }}
```
##### Code
```
{{ 'Shopify' | link_to: 'https://www.shopify.com' }}
```
## Output
```html
Shopify
```
### HTML attributes
```oobleck
string | link_to_type: attribute: string
```
You can specify [HTML attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attributes) by including a parameter that matches the attribute name, and the desired value.
```liquid
{{ 'Shopify' | link_to: 'https://www.shopify.com', class: 'link-class' }}
```
##### Code
```
{{ 'Shopify' | link_to: 'https://www.shopify.com', class: 'link-class' }}
```
## Output
```html
Shopify
```