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.

Sorry about the CAPTCHA that requires JS. If you really don't want to enable JS and still want to comment, you can send me your comment via e-mail and I'll post it for you.

Please solve the CAPTCHA below in order to fight spamWordPress CAPTCHA