Skip to main content
HTML Validation

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

About This HTML Issue

link elements are used to link to external resources, such as stylesheets, scripts, and icons. Including relevant attributes in the link element helps provide additional information about the linked resource.

  • rel: The rel attribute specifies the relationship between the current document and the linked resource, and can also provide additional information about the type of linked resource. For example, using rel="stylesheet" for a linked CSS file or rel="icon" for a linked favicon.

  • itemprop: If the linked resource is an HTML document or a microdata vocabulary like Schema.org, use itemprop to specify properties the linked document or vocabulary defines.

  • property: If the linked resource is an RDF resource, use property to provide metadata about the relationship between the current document and the resource being linked.

Example with rel attribute:

<head>
  <link rel="stylesheet" href="styles.css">
<!-- Other meta tags -->

</head>

Example with itemprop and property attributes:

<head>
  <link itemprop="mentions" href="https://example.com/"> 
  <link property="schema:citation" href="https://example.com/article.html">
<!-- Other meta tags -->

</head>

By adding itemprop, property, or rel as necessary, you can ensure your link elements provide appropriate context and semantic meaning to your HTML document.

Last reviewed: March 20, 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.