Krij wrote:
Hi!
I wonder: is '<SCRIPT TYPE="TEXT/JAVASCRIPT1.2">' a correct way of
starting? Or should it be kept in lowercase?
The case of tag and attribute names is irrelevant in HTML, it matters
greatly in XML (and hence XHTML).
The case sensitivity of the attribute's value depends on the attribute
- a script element's type attribute is case insensitive.
However, the *value* of the script element's type attribute is
extremely important: any value other than 'text/javascript' will cause
many browsers to ignore the content. You are actually better off to
leave the value empty or not have the attribute at all, in which case
browsers (in most circumstances) will assume JavaScript or JScript
(noting that validators will take exception to missing required
attributes).
--
Rob