Link is missing required Property Attribute - what is that?

HTML, CSS and anything else that deals with client side capabilities.

Moderator: General Moderators

Post Reply
simonmlewis
DevNet Master
Posts: 4435
Joined: Wed Oct 08, 2008 3:39 pm
Location: United Kingdom
Contact:

Link is missing required Property Attribute - what is that?

Post by simonmlewis »

[text]Element link is missing required attribute property.[/text]
<link rel="stylesheet" type="text/css" href="/source/menu/default.css" />

I'm using this code, but getting that error message from the validator.org web site.

What it mean, and what should I be adding?
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: Link is missing required Property Attribute - what is th

Post by Celauran »

You need to add property="stylesheet" or just move it to the head of the document.
https://www.w3.org/html/wg/drafts/html/ ... nk-element
simonmlewis
DevNet Master
Posts: 4435
Joined: Wed Oct 08, 2008 3:39 pm
Location: United Kingdom
Contact:

Re: Link is missing required Property Attribute - what is th

Post by simonmlewis »

Oh I see - so that's used when you need it only in one or a few insert pages, so you put property="stylesheet" in the tag.
Cool - thanks.
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
Post Reply