Skip to content

valid-rel ​

Validate rel attribute values.

Severity ​

error

❌ Incorrect ​

html
<a rel="stylesheet">x</a>

✅ Correct ​

html
<a rel="nofollow">x</a>

Reference ​

Configuration ​

json
{
  "rules": {
    "valid-rel": "error"
  }
}

Released under the MIT License.