Title: Type Attributes
Last modified: February 19, 2022

---

# Type Attributes

 *  Resolved [Matt Robinson](https://wordpress.org/support/users/mattyrob/)
 * (@mattyrob)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/type-attributes-2/)
 * Hi, and thanks for continuing to maintain such a great plugin.
 * I just wanted to raise awareness that there are six occurrences of type attributes
   in the code that are now no longer needed and are warning in HTML5 validators.
 * So:
    `<style type="text/css">` And `<script type="text/javascript">`
 * Can now be replaced with:
    `<style>` And `<script>`
 * If you wanted to be ultra complaint with older HTML you could use:
 * `$type_attr = current_theme_supports( 'html5', 'style' ) ? '' : ' type="text/
   css"';`
    `<style<?php echo $type_attr; ?>`

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

 *  Plugin Support [Amin – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support2/)
 * (@wpmudev-support2)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/type-attributes-2/#post-15383048)
 * Hello [@mattyrob](https://wordpress.org/support/users/mattyrob/) ,
 * Thank you for reaching out to us. Our developers are actually re-writing the 
   plugin so the new version will have all the necessary changes and updates.
 * kind regards,
    Kasia
 *  Thread Starter [Matt Robinson](https://wordpress.org/support/users/mattyrob/)
 * (@mattyrob)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/type-attributes-2/#post-15383588)
 * [@wpmudev-support2](https://wordpress.org/support/users/wpmudev-support2/) / 
   Kasia
 * That’s good to know, thanks for the rapid reply.

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

The topic ‘Type Attributes’ 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/)

 * 2 replies
 * 2 participants
 * Last reply from: [Matt Robinson](https://wordpress.org/support/users/mattyrob/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/type-attributes-2/#post-15383588)
 * Status: resolved