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

Jens Brueckmann lists at j-a-b.net
Thu Jan 27 12:54:10 CST 2005


On Thu, 27 Jan 2005 13:40:54 -0500, Jono <ox4dboy at comcast.net> wrote:

> When using something like:
>
> <td><script>mail("name","domain","0","")</script></td>
>
> 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>


Cheers,

jens

-- 
Jens Brueckmann
http://www.j-a-b.net/


More information about the thelist mailing list