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 Like