HTML | <script> type Attribute Last Updated : 21 Dec, 2020 Comments Improve Suggest changes Like Article Like Report The HTML <script> type Attribute is used to specify the MIME type of script and identify the content of the Tag. It has a Default value which is “text/javascript”. Syntax: <script type="media_type"> Attribute Values: It contains a single value i.e media_type which specifies the MIME type of script.Common "media_type" values are: text/javascript (this is default)text/ecmascriptapplication/ecmascriptapplication/javascript Example: This example illustrates the use of type attribute in <script> element. html <!DOCTYPE html> <html> <head> <title> HTML script type Attribute </title> </head> <body style="text-align:center; "> <h1 style="color:green;"> GeeksforGeeks </h1> <h3> HTML script type Attribute </h3> <script id="myGeeks" type="text/javascript"> document.write("Hello from GeeksforGeeks"); </script> </body> </html> Output: Supported Browsers: The browser supported by HTML <script> type Attribute are listed below: Google ChromeInternet ExplorerMozilla FirefoxSafariOpera Comment More infoAdvertise with us Next Article HTML | <script> type Attribute M manaschhabra2 Follow Improve Article Tags : Web Technologies HTML HTML-Attributes Similar Reads HTML <style> type Attribute HTML <style> type Attribute is used to specify the MIME type of the <style> Tag. The attribute is used to identify the type of content contained by the <style> Tag. The default value is "text/css" which indicates that the content is CSS. Syntax: <style type="media_type"> Not 1 min read HTML | <script> src Attribute The HTML <script> src Attribute is used to specify the URL of external JavaScript file. The External JavaScript file is used to run on the same script on several pages on a website. We can save the JavaScript file with an extension of .js. We can refer the external script using the src attribu 1 min read HTML | <object> type Attribute The HTML <object> type Attribute is used to specify the Internet type of MIME type of the Object. Syntax: <object type="media_type"> Attribute Values media_type It is used to specify the Internet media type of the embedded file. Example: html <!DOCTYPE html> <html> <body 1 min read HTML <source> type Attribute The HTML <source> type attribute is used to specify the MIME type of the media resource.Syntax: <source type="media_type"> Attribute Values: It contains single value MIME_type which specifies the MIME_type of the media resource. Few MIME types are video/ogg, videomp4, audio/ogg etc.Examp 1 min read HTML <a> type Attribute The HTML <a> type attribute specifies the MIME type of the linked document. It is not widely used, the type attribute can help browsers to understand the type of content that is being linked. It can be beneficial for certain applications and optimizations.Syntax<a type="media_type">Attri 1 min read HTML <menuitem> type Attribute The type attribute in <menuitem> tag is used to define the type of commands of the menuitems.  Syntax:<menuitem type="command|checkbox|radio">Attribute Values:command: It has a Default value. It defines  a standard order with an actioncheckbox: It defines a command that can be toggled us 1 min read HTML <menu> type Attribute The type attribute in <menu> element is used to define the type of menu bar. It is also used with the <menuitem> tag which defines the type of commands of the menu items. Syntax: <menu type="list|context|toolbar">Note: This attribute has been deprecated and is no longer used. Attr 1 min read HTML <input> type Attribute The HTML <input> type Attribute is used to specify the type of <input> element to display. The default type of <input> type attribute is text. Syntax: <input type="value">Attribute Values: Name Description button Defines clickable button in HTML document, commonly activated w 3 min read HTML | <script> charset Attribute The HTML <script>charset Attribute is used to specifies the character encoding used in an external script. Syntax: <script charset="charset"> Note: HTML <script>charset Attribute is not supported by HTML5. Attribute Values: It contains the value charset which specifies the characte 1 min read Like