Skip to content


Solving “Element link is missing required attribute property”

I use the W3C validator to check my HTML 5 documents, and somewhat recently this new error appeared, saying “Element link is missing required attribute property.”
After a bit of research, it turned out that, if a <link> tag is NOT inside the <head> section of the document but is in the <body>, then the validator wants an additional property attribute. Probably even easier with an exemple:

When inside the <head> section you would write:
<link rel=”stylesheet” type=”text/css” href=”css/myStyle.css”/>

But when inside <body> you’ll write:
<link property=”stylesheet” rel=”stylesheet” type=”text/css” href=”css/myStyle.css”/>

And voilà, no more error in the validator 😉

Posted in web development.


0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.



Some HTML is OK

or, reply to this post via trackback.

Please solve the CAPTCHA below in order to fight spamWordPress CAPTCHA