Skip to main content
HTML Validation

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

About This HTML Issue

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:

Last reviewed: March 21, 2023

Was this guide helpful?

Find issues like this automatically

Rocket Validator scans thousands of pages in seconds, detecting HTML issues across your entire site.

Ready to validate your sites?
Start your free trial today.