Answer the question
In order to leave comments, you need to log in
Why specify type?
In HTML5 I write tags with <script>
or <link>
without the type attribute and everything works fine. But when you look at the code of other sites, these attributes are everywhere.
Question: Why is this attribute needed and what will happen if it is not written?
Answer the question
In order to leave comments, you need to log in
For HTML4.01, this is a required attribute. Not for HTML5. And type can contain not only text / javascript, but also text / vbscript, for example
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question