[thelist] Confused about what HTML Validation is telling me
Eric Vitiello
evolt at perceive.net
Thu Feb 7 15:16:01 CST 2002
-- Bob Boisvert [Thu, 7 Feb 2002 16:12:37 -0500]:
><script language="JavaScript">
> ^
>Error: required attribute "TYPE" not specified
>
>I'm pretty new to JavaScript and I don't know what this means, can
>someone clarify this for me?.
I'm assuming that you have a specific document type definition at the top of this HTML?
In any case, the proper script tag is:
<script type="text/javascript">
but because older browsers don't understand the type attribute, you should use:
<script language="Javascript" type="text/javascript">
more than likely you don't have a DTD specified at the top of your document, and the validator is assuming that you're coding in XHTML/1.0. check out what DTD the validator says it is validating your document against.
---
Eric Vitiello
Perceive Designs
<www.perceive.net>
More information about the thelist
mailing list