Home >Web Front-end >HTML Tutorial >What does script mean?
script, meaning to quote script. A script is an executable file written in a certain format using a specific descriptive language, also known as a macro or batch file.
In HTML, you can use the 3f1c4e4b6b16bbbd69b2ee476dc4f83a tag to define client-side scripts, such as JavaScript. The
3f1c4e4b6b16bbbd69b2ee476dc4f83a element can either contain script statements or point to an external script file through the src attribute; the MIME type of the script is specified through the required type attribute.
3f1c4e4b6b16bbbd69b2ee476dc4f83a Attributes in the element
● type attribute: used to indicate the MIME type of the script. Example:
<script type="text/javascript"></script>
●async attribute: used to specify asynchronous execution of scripts (only applicable to external scripts), the value is async.
●Charset attribute: used to specify the character encoding used in external script files, charset.
● Defer attribute: used to specify whether to delay script execution until the page is loaded; defer.
● Language attribute: used to specify the script language; deprecated, please use the type attribute instead; the value is script.
● src attribute: used to specify the URL of an external script file.
● XML:space attribute: Used to specify whether to retain the blank space in the code, the value is preserve.
The above is the detailed content of What does script mean?. For more information, please follow other related articles on the PHP Chinese website!