Title: HTML5 validation issue
Last modified: December 14, 2020

---

# HTML5 validation issue

 *  Resolved [Saša](https://wordpress.org/support/users/stodorovic/)
 * (@stodorovic)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/html5-validation-issue-2/)
 * There is a mirror issue ([https://validator.w3.org/](https://validator.w3.org/)):
 * > **Warning:** The type attribute for the style element is not needed and should
   > be omitted.
 * The best way is to use the function [wp_add_inline_style](https://developer.wordpress.org/reference/functions/wp_add_inline_style/)
   instead of direct output. I’m testing following code:
 *     ```
       function hook_wp_enqueue_style() {
       	wp_register_style( 'blc-inline', false );
       	wp_enqueue_style( 'blc-inline' );
   
       	wp_add_inline_style( 'blc-inline', $this->plugin_conf->options['broken_link_css'] );
       }
       ```
   
 * It fixes the issue because it’s use native WP functions which remove type attribute
   if it isn’t needed…
 * I hope that you will fix it in next release.
 * References:
 * > [Miscellaneous Developer Focused Changes in 5.3](https://make.wordpress.org/core/2019/10/15/miscellaneous-developer-focused-changes-in-5-3/)
 * 
    [https://core.trac.wordpress.org/ticket/42804](https://core.trac.wordpress.org/ticket/42804)

Viewing 1 replies (of 1 total)

 *  Plugin Support [Laura – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support8/)
 * (@wpmudev-support8)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/html5-validation-issue-2/#post-13786663)
 * Hi [@stodorovic](https://wordpress.org/support/users/stodorovic/)
 * I hope you’re well today!
 * I’ve forwarded this feedback to our developers so they would look into it. Thank
   you for reporting this!
 * Best regards,
    Adam

Viewing 1 replies (of 1 total)

The topic ‘HTML5 validation issue’ is closed to new replies.

 * ![](https://ps.w.org/broken-link-checker/assets/icon-256x256.png?rev=2900468)
 * [Broken Link Checker](https://wordpress.org/plugins/broken-link-checker/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/broken-link-checker/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/broken-link-checker/)
 * [Active Topics](https://wordpress.org/support/plugin/broken-link-checker/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/broken-link-checker/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/broken-link-checker/reviews/)

## Tags

 * [html5](https://wordpress.org/support/topic-tag/html5/)

 * 1 reply
 * 2 participants
 * Last reply from: [Laura – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support8/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/html5-validation-issue-2/#post-13786663)
 * Status: resolved