Home > Article > Web Front-end > What does script mean in css?
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 script tag to define client-side scripts.
The operating environment of this tutorial: Windows 7 system, CSS3&&HTML5 version, Dell G3 computer.
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 <script> tag to define client-side scripts, such as JavaScript. The </p> <p><script> element can 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. </p> <p><script>Attributes in the element</p> <ul style="list-style-type: disc;"><li><p>type attribute: used to indicate the MIME type of the script. Example: </p></li></ul> <p><scripttype="text/javascript"></script>
async attribute: used to specify asynchronous execution Script (for external scripts only), 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.
Recommended learning: css video tutorial
The above is the detailed content of What does script mean in css?. For more information, please follow other related articles on the PHP Chinese website!