Title: W3C Html5 Validator
Last modified: August 21, 2016

---

# W3C Html5 Validator

 *  Resolved [dojbouli](https://wordpress.org/support/users/dojbouli/)
 * (@dojbouli)
 * [13 years ago](https://wordpress.org/support/topic/w3c-html5-validator/)
 * Hi ! I have a problem with w3c validation… (HTML5)
    Anybody knows how to fix 
   it ?
 * Element link is missing required attribute property.
 * …l-slider/assets/metaslider/public.css?ver=2.1.1′ type=’text/css’ media=’all’/
   >
 * Element link is missing required attribute property.
 * …ts/sliders/nivoslider/nivo-slider.css?ver=3.5.1′ type=’text/css’ media=’all’/
   >
 * Element link is missing required attribute property.
 * …nivoslider/themes/default/default.css?ver=3.5.1′ type=’text/css’ media=’all’/
   >
 * [http://wordpress.org/extend/plugins/ml-slider/](http://wordpress.org/extend/plugins/ml-slider/)

Viewing 15 replies - 1 through 15 (of 15 total)

 *  [matchalabs](https://wordpress.org/support/users/matchalabs/)
 * (@matchalabs)
 * [13 years ago](https://wordpress.org/support/topic/w3c-html5-validator/#post-3761561)
 * Hi,
 * Could you send me a link to your site please so I can run it through the validator?
 * Regards,
    Tom.
 *  Thread Starter [dojbouli](https://wordpress.org/support/users/dojbouli/)
 * (@dojbouli)
 * [13 years ago](https://wordpress.org/support/topic/w3c-html5-validator/#post-3761563)
 * how can I send u the link by private msg ?
 *  [matchalabs](https://wordpress.org/support/users/matchalabs/)
 * (@matchalabs)
 * [13 years ago](https://wordpress.org/support/topic/w3c-html5-validator/#post-3761565)
 * tom [@] matchalabs.com 🙂
 *  [reinhardf](https://wordpress.org/support/users/reinhardf/)
 * (@reinhardf)
 * [13 years ago](https://wordpress.org/support/topic/w3c-html5-validator/#post-3761659)
 * Same problem: [http://wordpress.org/support/topic/slider-not-appearing-with-js-css?replies=7](http://wordpress.org/support/topic/slider-not-appearing-with-js-css?replies=7)
 * My Solution:
    I’ve just unchecked printcss. And in header.php (<head>-area) i’ve
   added the 3 css-lines: <?php if ( is_page (‘home’) ) {?> <link rel=’stylesheet’
   id=’metaslider-display-css-css’ href=’…/wp-content/plugins/ml-slider/assets/metaslider/
   public.css?ver=2.1.1′ type=’text/css’ media=’all’ /> <link rel=’stylesheet’ id
   =’metaslider-nivo-slider-css-css’ href=’…/wp-content/plugins/ml-slider/assets/
   sliders/nivoslider/nivo-slider.css?ver=3.5.1′ type=’text/css’ media=’all’ /> 
   <link rel=’stylesheet’ id=’ml-slider_nivo_slider_theme_default-css’ href=’…/wp-
   content/plugins/ml-slider/assets/sliders/nivoslider/themes/default/default.css?
   ver=3.5.1′ type=’text/css’ media=’all’ /> <?php }?>
 *  [reinhardf](https://wordpress.org/support/users/reinhardf/)
 * (@reinhardf)
 * [13 years ago](https://wordpress.org/support/topic/w3c-html5-validator/#post-3761695)
 * Hi Tom,
 * for your info:
    Version 2.1.2 (HTML5 Validation fix for inline styles) shows 
   the same HTML5-Validation-errors.
 * Example (here Version 2.01): [http://validator.w3.org/check?uri=http://www.matchalabs.com](http://validator.w3.org/check?uri=http://www.matchalabs.com)–
   last three errors: “Element link is missing required attribute property.” because
   CSS in footer.
 *  [matchalabs](https://wordpress.org/support/users/matchalabs/)
 * (@matchalabs)
 * [13 years ago](https://wordpress.org/support/topic/w3c-html5-validator/#post-3761697)
 * Hi reinhardf,
 * Thanks for the heads up. We’ve enabled minify using w3 total cache which has 
   moved the CSS to the head.
 * I’ve looked into this quite a lot, and there is no easy way to solve this due
   to the way WordPress runs:
 * – Header
    – Content (this is where the metaslider shortcode is processed, it’s
   too late to add scripts to the header as this point, so they go in the footer)–
   Footer
 * Other sliders have the option to include the CSS (and JS) in the header of every
   page. This isn’t a great solution as it adds page weight where it’s not needed,
   but its especially not great for Meta Slider as we’d have to include the CSS 
   for 4 different slider libraries. Maybe I could move all the CSS into a single
   file, minify it and include it on every page by default – no doubt other people
   wouldn’t be happy with this solution though!
 * Other solutions try to scan the page for matching shortcodes before they add 
   scripts to the head. It’s a bit hacky and wouldn’t work for sliders included 
   in the template, so we can’t do that either.
 * The only option left would be to process every page after it has been generated,
   and move any scripts up into the head. This is essentially what w3 total cache
   does.
 * Regards,
    Tom.
 *  [matchalabs](https://wordpress.org/support/users/matchalabs/)
 * (@matchalabs)
 * [13 years ago](https://wordpress.org/support/topic/w3c-html5-validator/#post-3761698)
 * PS, the fix mentioned in the changelog is for the <style> tag that is output 
   when you’re using the flexslider carousel, it was missing a required attribute.
 * Regards,
    Tom.
 *  [reinhardf](https://wordpress.org/support/users/reinhardf/)
 * (@reinhardf)
 * [13 years ago](https://wordpress.org/support/topic/w3c-html5-validator/#post-3761700)
 * Hi tom,
 * many thanks for the explanation. The html 5 validation problem is not so important.
   Your slider is great – I will test W3-Total-Cache later.
 *  Thread Starter [dojbouli](https://wordpress.org/support/users/dojbouli/)
 * (@dojbouli)
 * [13 years ago](https://wordpress.org/support/topic/w3c-html5-validator/#post-3761702)
 * Ty reinhardf for the solution !
    It works great ! My Website is now OK with w3c
   html5 validation 🙂
 *  [matchalabs](https://wordpress.org/support/users/matchalabs/)
 * (@matchalabs)
 * [13 years ago](https://wordpress.org/support/topic/w3c-html5-validator/#post-3761726)
 * Reinhardf,
 * I’ve just tagged 2.1.5 (but it’s not public yet), which, if you’re interested
   you can download here – [http://wordpress.org/plugins/ml-slider/developers/](http://wordpress.org/plugins/ml-slider/developers/).
   Alternatively you could install the plugin beta tester plugin, and that will 
   let you upgrade from your WordPress plugin menu.
 * 2.1.5 includes a fairly big change – stylesheets are now imported using [@import](https://wordpress.org/support/users/import/)
   in a <style> tag just above the slider HTML. This is not ideal (but then nor 
   is putting them in the footer), but it is valid HTML5 and there is a small chance
   it may actually improve page rendering – it certainly won’t make it worse. I’d
   be interested to know what you think.
 * [http://html5.validator.nu/?doc=http%3A%2F%2Fwww.metaslider.com](http://html5.validator.nu/?doc=http%3A%2F%2Fwww.metaslider.com)
 * Regards,
    Tom.
 *  [reinhardf](https://wordpress.org/support/users/reinhardf/)
 * (@reinhardf)
 * [13 years ago](https://wordpress.org/support/topic/w3c-html5-validator/#post-3761727)
 * Hi Tom,
    I’ve just tested the version 2.1.5. For me it’s ok. Small warnings at
   Google Page Speed​​, Ok at GTMetrix & PingdomTools. But strangely enough, just
   HTML5 valid. 😉
 *  [matchalabs](https://wordpress.org/support/users/matchalabs/)
 * (@matchalabs)
 * [13 years ago](https://wordpress.org/support/topic/w3c-html5-validator/#post-3761728)
 * Hi reinhardf,
 * Great, thanks!
 * I think I’ll work on reducing the number of imports that meta slider includes,
   maybe by merging the public.css file into the slider styles, see if I can make
   page speed happy too.
 * Thanks for your help 🙂
 * Regards,
    Tom.
 *  [reinhardf](https://wordpress.org/support/users/reinhardf/)
 * (@reinhardf)
 * [13 years ago](https://wordpress.org/support/topic/w3c-html5-validator/#post-3761730)
 * Hi Tom,
 * I think google page speed still nags, both at 1 and at 3 imports. But these small
   mistakes cost you no speed points. So it does not matter much. It will probably
   be the best html5 valid solution at the moment.
    Thank you for your work on the
   free plugin and your great support. So with new version 2.1.5: Topic resolved.
 *  [reinhardf](https://wordpress.org/support/users/reinhardf/)
 * (@reinhardf)
 * [13 years ago](https://wordpress.org/support/topic/w3c-html5-validator/#post-3761731)
 * double post 🙁
 *  [matchalabs](https://wordpress.org/support/users/matchalabs/)
 * (@matchalabs)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/w3c-html5-validator/#post-3761852)
 * Just posting this for anyone who has found this thread on Google.
 * I’ve been working on a plugin to move the Meta Slider link, inline script and
   style blocks into the <head> of the page:
 * [https://github.com/tomhemsley/ml-slider-html5](https://github.com/tomhemsley/ml-slider-html5)
 * To install, click ‘Download ZIP’, then go to Plugins > Add New > Upload and select
   the .zip file. So far there isn’t a settings page or anything like that.
 * **If you’re using this plugin, please let me know how it goes! I may integrate
   the functionality into the Meta Slider plugin if it’s working well**
 * Regards,
    Tom

Viewing 15 replies - 1 through 15 (of 15 total)

The topic ‘W3C Html5 Validator’ is closed to new replies.

 * ![](https://ps.w.org/ml-slider/assets/icon.svg?rev=3568997)
 * [Slider, Gallery, and Carousel by MetaSlider - Image Slider, Video Slider](https://wordpress.org/plugins/ml-slider/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ml-slider/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ml-slider/)
 * [Active Topics](https://wordpress.org/support/plugin/ml-slider/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ml-slider/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ml-slider/reviews/)

 * 15 replies
 * 3 participants
 * Last reply from: [matchalabs](https://wordpress.org/support/users/matchalabs/)
 * Last activity: [12 years, 2 months ago](https://wordpress.org/support/topic/w3c-html5-validator/#post-3761852)
 * Status: resolved