<script> tag?
Which attribute can be used to include a JavaScript file asynchronously?
A). async='true'
B). defer='async'
C). type='async'
D). async
Which attribute is used to specify the location of an external JavaScript file in the <script> tag?
A). href
B). url
C). src
D). location
What attribute of the <script> tag allows asynchronous loading of scripts?
A). type='async'
B). async='true'
C). defer='async'
D). async
What is the purpose of the type attribute in the <script> tag?
A). It specifies the version of HTML used in the document.
B). It specifies the scripting language used in the script.
C). It defines the content type of the script file.
D). It indicates whether the script is inline or external.
When including multiple <script> tags in an HTML document, what determines the order of script execution?
A). The order in which the <script> tags appear in the HTML document.
B). The order specified by the async attribute in each <script> tag.
C). The alphabetical order of the script filenames.
D). The defer attribute in each <script> tag.
How does the browser handle the execution of a <script> tag with the defer attribute?
A). It delays script execution until after the document is parsed, maintaining script order.
B). It executes the script as soon as it's available, even if the document is still parsing.
C). It waits for user interaction before executing the script.
D). It prevents the script from executing until the user interacts with the page.
Where is the recommended place to include external JavaScript files in an HTML document?
A). Inside the <head> section.
B). Before the closing