You will see many sites with the following type of code:
Items
Script:
<script type="text/javascript"> </script>
Link Elements:
<link rel="stylesheet" href="url.css" type="text/css" media="all" />
Style Elements:
<style type="text/css"> </style>
My question is:
Are type attributes needed in popular browsers today?
(Popular value of IE 8+, Firefox, Webkit, Opera, and Chrome)
What happens if you do not turn them on?
Note. The answer should cover both HTML5 and XHTML doctrines if there is a difference in behavior between them.
source share