> 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 %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://wopehq.gitbook.io/muninn/config/attribute.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.
