Shawn J. Cassick wrote:
Germ wrote:
Again another thing that im not 100% sure on....

the strict DTD for XHTML1.0 doesnt allow javascript right???

What?  Of course it allows javascript.

<script type="text/javascript">//<![CDATA[
  alert("Hello World!");
//]]></script>

Note: Don't use <!-- and //-->, as is common for HTML 4
http://lachy.id.au/log/2005/05/script-comments

you need to add another meta tag to define what form of text you are using, if it is UTF-8 or 16, Unicode, etc. if it is utf-8 just add this inbetween the <head></head>

The character encoding is a completely separate issue and doesn't seem relevant to the question about JavaScript; but it is still important to get it right.

<meta http-equiv="content-type" content="text/html; charset=utf-8" />

No, that is wrong for XHTML. Do not use that meta element in XHTML at all, set proper HTTP headers to declare the encoding (even if you're serving it as text/html)

http://lachy.id.au/log/2006/01/content-type

--
Lachlan Hunt
http://lachy.id.au/
******************************************************
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************

Reply via email to