HTML

HTML Intro

HTML Intro Quiz

HTML Intro Exercise

HTML Basics

HTML Basic Quiz

HTML Basic Exercise

HTML Advance

HTML Advance Quiz

HTML Advance Exercise

HTML Tags List

HTML Global Attributes

HTML Attributes

FAQs

HTML defer Attribute

HTML defer Attribute

 

 

The defer attribute is a boolean attribute. When present, it specifies that the script is executed when the page has finished parsing.

 

Three ways for external js file executions are:-

 

  • if async is present then the script is executed asynchronously with the rest of the page.
  • if async is absent and defer is present then the script will execute after the page has finished parsing.
  • If both are absent then the script is fetched and executed immediately.

 

Used With:-

 

Element Attribute
script defer

 

Syntax:-

 

Its syntax is:- < element defer >

Code Explanation

All Tutorials related to HTML Attributes

All Sections related to HTML