You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The attribute 'rel' in tag 'link rel=' is set to the invalid value 'stylesheet'.
When <link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet"> is not in the <head>, for example, if in the <body>.
<!doctype html><html⚡><head><metacharset="utf-8"><linkrel="canonical" href="self.html" />
<metaname="viewport" content="width=device-width,minimum-scale=1"><styleamp-boilerplate>body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}</style><noscript><styleamp-boilerplate>body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}</style></noscript><scriptasyncsrc="https://cdn.ampproject.org/v0.js"></script></head><body><linkhref="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet">
Hello, AMP world.</body></html>
Expected: The error to state that <link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet"> must be in <head>.
Reference: ampproject/amp.dev#542 - User didn't know that the tag was in the wrong place, and error mislead them into thinking that the actual stylesheet wasn't allowed.
The text was updated successfully, but these errors were encountered:
The validator is confused, since we do allow <link> tags in the <body>, but they must have a different rel value. For example <link rel=foo href="https://fonts.googleapis.com/css?family=Lato"> is perfectly valid in the body, which is what the error is trying to tell you.
This is something we'd like to eventually improve however.
Receive the error:
The attribute 'rel' in tag 'link rel=' is set to the invalid value 'stylesheet'.
When
<link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet">
is not in the<head>
, for example, if in the<body>
.Expected: The error to state that
<link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet">
must be in<head>
.Reference: ampproject/amp.dev#542 - User didn't know that the tag was in the wrong place, and error mislead them into thinking that the actual
stylesheet
wasn't allowed.The text was updated successfully, but these errors were encountered: