Claudia M Posted January 18, 2018 Share Posted January 18, 2018 Hi, Just a quick question. I'm validating my site and got this warning. More lines but you get the jest. Is it safe to delete the TYPE portion of the code? Thanks in advance! Quote Link to comment Share on other sites More sharing options...
bsmither Posted January 18, 2018 Share Posted January 18, 2018 My research shows that if the HTML declares itself as HTML5*, then <script src="x"></script> is all you need and want. * All skins I have seen for CC5/6 are HTML5. This is declared with a simple <!DOCTYPE html> as the first line of the page code. Anything more than just this probably means the code is less than HTML5, such as HTML4. If not HTML5, then the rules are different, specifically for this question, the type attribute would then be required. Check your main.php template for the doctype. Quote Link to comment Share on other sites More sharing options...
Claudia M Posted January 18, 2018 Author Share Posted January 18, 2018 Thanks Brian. I have the <!DOCTYPE html> so I felt safe removing the type attribute. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.