bestbuildpc: Forums
 

 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Element link is missing required attribute property
 
 
Post new topic   Reply to topic    bestbuildpc Forum Index -> Web Development
View previous topic :: View next topic  
Author Message
bestbuildpc
Site Admin
Site Admin


Joined: Jun 30, 2012
Posts: 213
Location: NL

PostPosted: Fri Jan 10, 2014 14:29    Post subject: Element link is missing required attribute property Reply with quote

If you are having a validation error like this:

Element link is missing required attribute properly from this line

Code:
<link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>assets/css/prettify.css" />


This line above is correct. There is no problem at all but if this line is between <body><link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>assets/css/prettify.css" /></body> Then it will create that message.

Example:

Code:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');


?>

<h3 class="title"><?php echo $this->lang->line('faqs'); ?></h3>   
<p><?php echo $this->lang->line('review_faq_list'); ?></p>
<div class="accordion" id="accordion2">
<?php $r = 1; foreach($faqs as $faq) {
echo '<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapse'.$r.'">
'.$faq['question'].'
</a>
</div>
<div id="collapse'.$r.'" class="accordion-body collapse">
<div class="accordion-inner">
'.html_entity_decode($faq['answer']).'
</div>
</div>
</div>';
$r++;
}
?>

</div>

<link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>assets/css/prettify.css" />
<script type="text/javascript" src="<?php echo base_url(); ?>assets/js/prettify.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('pre').addClass('prettyprint');
window.prettyPrint && prettyPrint();
$(window.location.hash).collapse('show');
});
</script>


We need to remove this line because it is already in other places.

Code:
<link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>assets/css/prettify.css" />
  
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic    bestbuildpc Forum Index -> Web Development All times are GMT + 2 Hours
 
 Page 1 of 1

 

Jump to:   
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 vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Powered by phpBB © 2001-2008 phpBB Group
 
Forums ©