The <script> tag has attributes such as:
language – this attribute is deprecated
async – if used web page can continue to load without waiting for script to load.
When the async attribute is specified the HTML document can continue to load without waiting for the script to load and the script will execute before the document completes loading. For example:
document.write(“This is sample JS”);
This is sample JS
Code 2. Html