This tag is used to add a javascript code to the HTML document.
If neither async or defer are used, an external script will be loaded and executed immediately.
async
represents the script is downloaded in parallel to parsing and executed as it's available.
- none
defer
represents the script that will be executed after the document has been parsed.
- none
crossorigin
represents the mode of CORS request.
- anonymous - A CORS request is performed without sending any credentials.
- use-credentials - A CORS request is performed with sending any credentials.
src
represents URL of the script file
- URL
type
represents the media type
- MIME-type
HTML script Example:
Edit Example