steven.miller
6d ago • 0 views
Multiple Choice Questions on the `<script>` Tag for Grade 7 CS
Hey everyone! 👋 Learning about the `
1 Answers
✅ Best Answer
singleton.melanie40
Mar 14, 2026
💡 Quick Study Guide: The <script> Tag
- ✨ Purpose: The ``.
- ⏳ Deferred Execution (
deferattribute): The `defer` attribute tells the browser to execute the script only after the HTML document has been fully parsed. This is useful for scripts that depend on the entire page being loaded. - ⚡ Asynchronous Execution (
asyncattribute): The `async` attribute allows the script to be downloaded and executed asynchronously, meaning it won't block the parsing of the HTML document. The script will execute as soon as it's available, often before the HTML is fully parsed. - 📝 Inline Scripts: You can write JavaScript code directly between the opening and closing ``.
🧠 Practice Quiz
- What is the primary purpose of the ``
B) ``
C) ``
D) `
`
Click to see Answers
1. C: To embed or reference client-side scripts, like JavaScript
2. D: JavaScript
3. C: In either the <head> or <body> section
4. C: `src`
5. C: The script should execute after the HTML document has been fully parsed.
6. C: It allows the script to be downloaded and executed asynchronously without blocking HTML parsing.
7. C: `<script> console.log("Hello from script!"); </script>`
Join the discussion
Please log in to post your answer.
Log InEarn 2 Points for answering. If your answer is selected as the best, you'll get +20 Points! 🚀