No More Types for Scripts and Links

You might add the type attribute to your link and script tags.

1<link rel=”stylesheet” href=”path/to/stylesheet.css” type=”text/css” />
2<script type=”text/javascript” src=”path/to/script.js”></script>

This is not necessary. It’s implied that both of these tags refer to stylesheets and scripts respectively. As such, we can remove the type attribute altogether.

1<link rel=”stylesheet” href=”path/to/stylesheet.css” />
2<script src=”path/to/script.js”></script>

Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *