html script links. type = "text/javascript" -


Where does the "text" come from? What is the written link described as "text / ..."? I think you have to use what script browser saying that the script tags are (is this correct?) And although it is the default language makes most browsers greater need JavaScript need this line I It looks like html is describing a linked file as "a type of text called javascript" Or if you use type = "text / css", then HTML is connecting with a type of text called CSS. What would you use other than "text"?

If we look, we find that

  • image
  • Message
  • 8 Type:

    • Text
    • Application
    • Audio <
    • Multilanguage
    • X-Token
    • Video

    Text here type and javascript, in your example, subtypes :

      content-type: type = "/" subtype * [ "," parameters]  

    This document defines what is text :

    Text: Text Information

    The primary subtype, "plain", does not require any special software to get the full meaning of the different stories of support indicates plain (unchanged) text specified character set. Subtypes are used as rich text, where applications can increase the presence of software text, but such software should not be needed to get general idea of ​​content. Thus in the potential subtypes, any readable word processor format is included. A very simple and portable subtype, rich text, is defined in this document.

    text / javascript is really obsolete, and application / javascript application / javascript , so it is more common in the past.)

    In HTML5, type script on element > Attribution is optional, and it is absolutely fine except for:

      & lt; Script src = "myScript.js" & gt; & Lt; / Script & gt;  

    Comments