[thelist] Valid <script>...</script> use

Jono ox4dboy at comcast.net
Thu Jan 27 14:43:16 CST 2005


Will do, thanks.

On Jan 27, 2005, at 1:54 PM, Jens Brueckmann wrote:

>> Do I need to put <script type="text/javascript"> in the tag to make 
>> it valid?
>> I have declared <script type="text/javascript"> in the header link 
>> for the external javascript file, but do I also need to do it for all 
>> of the embedded <script> tags?
>
> Yes, although a default scripting language may be defined through a 
> meta element or through an HTTP header, the type attribute is required 
> for each script element. See 
> <http://www.w3.org/TR/html401/interact/scripts.html#edef-SCRIPT>



More information about the thelist mailing list