Skip to main content

HTML Guide

Bad value “X” for attribute “rel” on element “Y”: The string “X” is not an absolute URL.

The rel attribute defines the relationship between a linked resource and the current document. Valid on <link>, <a>, <area>, and <form>, the supported values depend on the element on which the attribute is found.

Here’s an example of using the rel attribute to link a document to a CSS stylesheet:

<link rel="stylesheet" href="default.css" />

Here’s an example os using the rel attribute to tell search engine spiders to ignore the link relationship with another document:

<a href="https://example.com" rel="nofollow">more info</a>

Learn more:

Related W3C validator issues