SCRIPT The text part of the specification allows SCRIPT in the HEAD part only. However, the DTD lists it as a text element, too, allowing SCRIPT in the BODY part as well, at any place where a text element is allowed. The latter is obviously the intent.