Skip to main content

HTML Guide

Element “link” is missing one or more of the following attributes: “href”, “itemprop”, “property”, “rel”, “resource”.

A <link> element must include at least one of the attributes href, rel, itemprop, property, or resource.

The <link> element is used to define the relationship between the current document and an external resource, most commonly for linking stylesheets (rel="stylesheet") or providing metadata. According to the HTML specification, at least one of the attributes href, rel, itemprop, property, or resource must be present so the browser or validator knows the purpose of the link.

Correct usage with rel and href:

<link rel="stylesheet" href="styles.css">

Correct usage with property:

<link property="og:image" href="image.png">

Learn more:

Related W3C validator issues