Opinions on W3C XHTML 1.0 validated pages ::opinions/mini poll::

liunx

Guest
greetings all<br />
<br />
I was wondering exactly how important XHTML 1.0 valiation is by the W3C group, my last site validated i would like my next site to validate, but from what i know if you use Javascript or DHTML on your page you can forget about it validating (at least as far as i know), i would like to use DHTML in the site im using and some Javascripts but i also want a valid xhtml page, so something might have to give.<br />
<br />
what do you guys/gals think?<br />
<br />
is there a way also that a page can validate with Javascripts thrown in?<!--content-->I don't know about dhtml, but I do know you can validate javascript. I actually have a page with JS on it validated xhtml.<br />
<br />
<!-- m --><a class="postlink" href="http://joshmccrain.com/autographs2.htm">http://joshmccrain.com/autographs2.htm</a><!-- m --><br />
<br />
That page used to validate xhtml(there's 2 errors because i've been working on that page and forgot to revalidate it). But you'll also notice that there is javascript.<!--content-->Yep, JavaScript works just fine with XHTML, however some scripts won't work if you're using the application/xhtml+xml MIME type:<br />
<!-- m --><a class="postlink" href="http://www.xml.com/pub/a/2003/03/19/dive-into-xml.html">http://www.xml.com/pub/a/2003/03/19/dive-into-xml.html</a><!-- m --><br />
<br />
I like to validate my documents to help cross-browser compatibility. A valid page isn't guaranteed to work with every browser (although it'd be nice if it would ;) ), but it helps.<!--content-->so a page with JavaScripts can be validated then? thats cool i like a lot of DHTML scripts but i guess i can find similar scripts done in Javascript.<br />
<br />
Does the validator kind of ignore the Javascript item like it does CSS scripts?<!--content-->no it doesn't ignore css or javascript.<br />
<br />
you have to validate your css as well and on javascript you have to have the correct case when you write your code. if it is not correct it will not validate.<br />
<br />
this is invalid<br />
<br />
onSubmit()<br />
<br />
while this is valid<br />
<br />
onsubmit()<br />
<br />
see?<!--content-->this is the DTD ive been using::<br />
<br />
<?xml version="1.0" encoding="UTF-8"?><br />
<!DOCTYPE html PUBLIC "-//W3C//DTD/XHTML 1.0 Transitional//EN"<br />
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><br />
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><br />
<br />
this DTD specifies XML do i need to switch from transitional DTD to strict, or is this DOCTYPE ok?<!--content-->don't use this one<br />
<br />
<?xml version="1.0" encoding="UTF-8"?><br />
<br />
that puts the brwosers in quark mode.<!--content-->this is invalid<br />
<br />
onSubmit()<br />
<br />
while this is valid<br />
<br />
onsubmit()<br />
<br />
see?<br />
<br />
<br />
so all case has to be lowercase so its the same syntax as XHTML 1.0 then right? so every last piece of code has to be lowecase syntax then if i understood you correctly.<!--content-->don't use this one<br />
<br />
<?xml version="1.0" encoding="UTF-8"?><br />
<br />
that puts the brwosers in quark mode.<br />
<br />
<br />
__________________<br />
<br />
so do i subtract this from the DTD or switch to another DTD?<br />
and what does quark mode mean?<!--content-->quark mode is bug mode.<br />
<br />
and no not all javascript function will work in lowercase.<br />
<br />
getElementById() has to be like that.<br />
<br />
and just delete that line, do nothing else. the rest is just fine.<!--content-->if you have problems you can put all or most of your javascript in a separate file and just call the file with a link tag, that way the validator only validates the link tag, not the javascript.<!--content-->how exactly would that be done kevin?<!--content-->same with css<br />
<br />
<link href=http://www.htmlforums.com/archive/index.php/"stylesWf.css" rel="stylesheet" type="text/css" /><br />
<br />
<script type="text/javascript" src=http://www.htmlforums.com/archive/index.php/"javascript.js"></script><br />
<br />
but there can be no html tags in either one of those files.<!--content-->
 
Back
Top