DU said:
In HTML 4.01, it would be the lang attribute in the <html> tag,
right?
Yes, the lang attribute in that tag _and_ in almost any other tag as
needed - you can, and by WAI rules should, specify all language changes
in the document. Besides, in principle the Content-Language header has
a slightly different meaning - it does not specify the language of the
document but the language(s) that is (or are) needed for understanding
the document. The distinction might be rather theoretical, but any
processing of the document's content by language-dependent rules should
be based on lang (or xml:lang) attributes.
Does any browser actually use such a tag for anything? Besides, if
you think you are doing the Right Thing, think again. There is no
registered Internet media type text/javascript.
[snipped]
That is not how I understood the use of this meta tag; I thought it
was to define a default scripting language for the document.
It is, but you actually cannot do that in a protocol-correct way. The
point is that by the specifications, the language shall be specified by
an Internet media type (somewhat odd, but that's what they decided),
and text/javascript is not registered, hence incorrect according to the
applicable RFC. So it's not a theoretically correct tag anyway, and on
the practical side, it is not needed.