PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Tue Aug 21, 2018 1:26 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Fri Jan 22, 2016 8:07 am 
Offline
DevNet Master

Joined: Wed Oct 08, 2008 3:39 pm
Posts: 4420
Location: United Kingdom
Syntax: [ Download ] [ Hide ]
Element link is missing required attribute property.

<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.


Top
 Profile  
 
PostPosted: Fri Jan 22, 2016 8:45 am 
Offline
Moderator
User avatar

Joined: Tue Nov 09, 2010 3:39 pm
Posts: 6424
Location: Montreal, Canada
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

_________________
Supported PHP versions No longer supported versions


Top
 Profile  
 
PostPosted: Fri Jan 22, 2016 9:53 am 
Offline
DevNet Master

Joined: Wed Oct 08, 2008 3:39 pm
Posts: 4420
Location: United Kingdom
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group