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: Therelattribute 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, usingrel="stylesheet"for a linked CSS file orrel="icon"for a linked favicon. -
itemprop: If the linked resource is an HTML document or a microdata vocabulary like Schema.org, useitempropto specify properties the linked document or vocabulary defines. -
property: If the linked resource is an RDF resource, usepropertyto 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:
Last reviewed: March 20, 2023
Find issues like this automatically
Rocket Validator scans thousands of pages in seconds, detecting HTML issues across your entire site.