Quick question: it has been standard practice to specify html header links like:
<link rel="stylesheet" href="css/mainstylesheet.css" type="text/css" />
But I have started seeing people removing such type declarations; particularly in projects such as html5 boilerplate.
<link rel="stylesheet" href="css/mainstylesheet.css"/>
Are these type declarations superfluous then, or is it still preferable to include them. Note; I don’t mean can we get by without using them (which the answer would be ‘yes’) but rather which is better practice?
I personally prefer removing
typeattribute fromlink[rel="stylesheet"]as well asscripttags to save a few bytes, because it works withouttypeand its not obligatory for links (for stylesheet links “text/css” is the default and for script tags “text/javascript” is the default)