Intermediate HTML & CSS
Q67 / 100

What is the difference between "<script>", "<script defer>", and "<script async>"?

Correct! Well done.

Incorrect.

The correct answer is B) A plain <script> blocks parsing while it downloads/executes; "defer" downloads in parallel but runs after parsing completes (in order); "async" downloads in parallel and runs as soon as ready (order not guaranteed)

B

Correct Answer

A plain <script> blocks parsing while it downloads/executes; "defer" downloads in parallel but runs after parsing completes (in order); "async" downloads in parallel and runs as soon as ready (order not guaranteed)

Explanation

These attributes control how external scripts interact with HTML parsing: default scripts block parsing; defer preserves order and runs after parsing; async runs as soon as loaded, potentially out of order and interrupting parsing.

Progress
67/100