Skip to main content

HTML Guide

Bad value X for attribute “type” on element “script”: Subtype missing.

The specified type for an script element is not a valid MIME type as it’s missing a subtype.

A MIME type most-commonly consists of just two parts: a type and a subtype, separated by a slash (/) — with no whitespace between, for example:

text/javascript

Learn more:

Related W3C validator issues