elibraryportal Logo

HTML script tag

The script tag is used to embed executable code or data, which is typically used to embed or refer to JavaScript code .

Syntax:-


Attributes

Attribute Description
async Specifies that the script is executed asynchronously (only for external scripts)
defer Specifies that the script is executed when the page has finished parsing (only for external scripts)
src Specifies the URL of an external script file
type Specifies the media type of the script

Example:-

Test it Now