What is the use of “defer” attribute?

A It defers rendering of html page
B It defers script execution until the page has been rendered
C It defers rendering of css attributes
D It is only for internal scripts

Correct Answer: It defers script execution until the page has been rendered

The defer attribute is a boolean attribute. The script is executed after the page has finished parsing. The defer attribute is used if and only if there is src attribute. Defer is for external not internal scripts.

Next steps