Skip to main content

HTML Guide

Free site validation

Find out what web pages on your sites are affected by HTML issues.

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

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.

Learn more:

Related W3C validator issues