> For the complete documentation index, see [llms.txt](https://wopehq.gitbook.io/muninn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wopehq.gitbook.io/muninn/config/attribute.md).

# Attribute

Sometimes we would like to use an attribution of an item. It is enough to use the `attr` feature to ensure that.

{% code title="HTML" %}

```markup
<div class="parent">
  <a href="/about">About</div>
</div>

```

{% endcode %}

{% code title="Config" %}

```javascript
{
    "link": {
        "selector": "a",
        "attr": "href"
    },
}

// or use this shortcut

{
    "link": "a @ href"
}
```

{% endcode %}

{% code title="Output" %}

```javascript
{
    "link": "/about" 
}
```

{% endcode %}

Multiple Attributes

{% code title="HTML" %}

```html
<div class="parent">
  <a href="https://google.com" rel="noreferrer">Google</div>
</div>
```

{% endcode %}

{% code title="Config" %}

```javascript
{
    "link": {
        "selector": "a",
        "attr": ["href", "rel"]
    },
}

// or use this shortcut

{
    "link": "a @ href, rel"
}
```

{% endcode %}

{% code title="Output" %}

```javascript
{
    "link": {
        "href": "https://google.com",
        "rel": "noreferrer"
    }
}
```

{% endcode %}

All Attributes

```javascript
{
    "link": {
        "selector": "a",
        "attr": "$all"
    },
}

// or use this shortcut

{
    "link": "a @ $all"
}
```

{% code title="Output" %}

```javascript
{
    "link": {
        "href": "https://google.com",
        "rel": "noreferrer"
    }
}j
```

{% endcode %}
