Pew Pew Laser Blog

Code. Glass art. Games. Baking. Cats. From Seattle, Washington and various sundry satellite locations.

Pew Pew Laser Blog Archives — by Blog ID

HTML5 Default Types.


You've typed <script type="text/javascript" src="foo.js"></script> about a million times. But when have you ever needed to use a type other than text/javascript for a script tag?

HTML5 understands. It assumes a default type="text/javascript" for <script> tags. It also assumes type="text/css" for <link rel="stylesheet"> and <style> tags.

For more cool HTML5 features, check out The three levels of HTML5 usage by Mathias Bynens.


Tags: code html html5 javascript web-development

Authorized users may log-in to leave a comment.

Last Blog: 10 Things I Love About Sublime Text 2.

Next Blog: Why I Still Use GoDaddy, For Now.