# href-abs-or-rel

> Enforces href attributes to be either absolute or relative URLs as specified in the configuration.

Href must be absolute or relative.

Level: Warning

## Config value

[Section titled “Config value”](#config-value)

* `abs`: absolute mode
* `rel`: relative mode
* `false`: disable rule

### The following patterns are **not** considered rule violations

[Section titled “The following patterns are not considered rule violations”](#the-following-patterns-are-not-considered-rule-violations)

```html
abs: <a href="https://htmlhint.com/">test1</a> <a href="https://github.com/">test2</a>
rel: <a href="test.html">test1</a> <a href="../test.html">test2</a>
```