Horje

What is HTML <script> type Attribute

Definition and Usage

The type attribute specifies the type of the script.

The type attribute identifies the content between the <script> and </script> tags.


Browser Support

Syntax

<script type="scripttype">

Attribute Values

Value Description
scripttype Specifies the type of the script.

Some common values:
  • A JavaScript MIME type like: text/javascript (default)module:
  • Another MIME type. src attribute will be ignored

Look at IANA Media Types for a complete list of standard media types.





Category:
Web Tutorial
Sub Category:
HTML Tag
Uploaded by:
Admin