In HTML5, you can embed JavaScript code directly in the page and include external JavaScript files. The syntax for embedded scripts is "", and the syntax for external scripts It is "".
In HTML5, js code can be used in two ways (embedded script and external script) through the tags.
Description:MIME type includes two parts: media type and subtype. For JavaScript, the MIME type is "text/javascript".
Note:In HTML5, the type attribute is no longer required. The default value is "text/javascript". JavaScript is the default scripting language in HTML5 and all modern browsers.
Recommended video tutorials: "