The <script> tag is used to define client-side scripts like JavaScript. It contains scripting statements or links to an external script file using the src attribute. The async and defer attributes control when external scripts are executed. The type attribute is optional in HTML5, unlike HTML 4.01. The <script> tag supports external JavaScript files, inline scripts, and execution of external scripts in different ways depending on attribute values.
Related topics: