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" />
|