---
name: "[up-href]"
area: "API"
kind: "HTML attribute"
parent: "up.link module"
visibility: "deprecated"
url: "https://unpoly.com/api/up-href"
---
<nav aria-label="Unpoly docs">[All docs](https://unpoly.com/index.md) · [up.link module](https://unpoly.com/api/up.link.md)</nav>

# [up-href]

**This feature has been deprecated**. Following an element with only an `[up-href]` attribute is deprecated. Also set an [`[up-follow]`](https://unpoly.com/api/up-follow.md) attribute on the same element.

Load [`unpoly-migrate.js`](https://unpoly.com/changes/upgrading.md) to polyfill deprecated features.

Makes any element [behave like a hyperlink](https://unpoly.com/learn/faux-interactive-elements.md).

## Example {#example}

The following `<span>` element will [navigate](https://unpoly.com/api/up-follow.md) to `/details` when clicked:

```html
<span up-href="/details">Read more</span>
```

---

## Modifying attributes {#attributes}

> #### Info
>
> All modifying attributes for [`[up-follow]`](https://unpoly.com/api/up-follow.md) may also be used.

### [up-href] {#up-href}

(optional)

The URL to load when activated.

