If I were to write a stylesheet in an HTML document, it's worth noting that since the introduction of HTML5, the type attribute is no longer necessary as text/css has become the default and only possible value:
<style type='text/css'></style>
While specifying a MIME type is not required, are there any scenarios where it should still be specified?
Is there a distinction between specifying it for the <link>
or <style>
tag?
<link rel='stylesheet' type='text/css' href='typography.css'>
In practice, it would function either way, but can I leave it out in the <link>
tag like I can in the <style>
tag, apart from when the href attribute is defined?