-
What is the use of “defer” attribute?
-
- It defers rendering of css attributes
- It defers rendering of html page
- It is only for internal scripts
- It defers script execution until the page has been rendered
- None of these
Correct Option: D
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.