|
Posted by howa on March 17, 2008, 11:45 am
Please log in for more thread options
Is it true that if my XHTML is conforming to the w3c XHTML DTD, my
XHTML is validated and no need to run the HTML validation hosted on
w3c web page?
Thanks.
|
|
Posted by Martin Honnen on March 17, 2008, 11:56 am
Please log in for more thread options
howa wrote:
> Is it true that if my XHTML is conforming to the w3c XHTML DTD, my
> XHTML is validated and no need to run the HTML validation hosted on
> w3c web page?
I am not sure I understand the question. Are you asking whether the
browser validates your XHTML? No, browsers like IE or Mozilla certainly
don't do that.
--
Martin Honnen
http://JavaScript.FAQTs.com/
|
|
Posted by Beauregard T. Shagnasty on March 17, 2008, 12:22 pm
Please log in for more thread options howa wrote:
> Is it true that if my XHTML is conforming to the w3c XHTML DTD, my
> XHTML is validated and no need to run the HTML validation hosted on
> w3c web page?
You won't know if it is 'conforming' until you validate it. ;-)
That said, why are you using XHTML, when the 'most popular browser'
doesn't recognize it? (That would be IE, of course.) You will have
best luck if you write with HTML 4.01 Strict.
http://www.fingerlakesbmw.org/test/xhtml.php
--
-bts
-Friends don't let friends drive Vista
|
|
Posted by Harlan Messinger on March 17, 2008, 12:24 pm
Please log in for more thread options howa wrote:
> Is it true that if my XHTML is conforming to the w3c XHTML DTD, my
> XHTML is validated and no need to run the HTML validation hosted on
> w3c web page?
The point of running the validation on the W3C site is to find out
*whether* your XHTML is conforming (presupposing that you *want* to know
whether it is). If you already *know* that it is, why would you be
testing it to find out *whether* it is? Conversely, if you haven't run
it through a validator, how do you know it's valid?
|
|
Posted by Andy Dingley on March 17, 2008, 12:59 pm
Please log in for more thread options > Is it true that if my XHTML is conforming to the w3c XHTML DTD, my
> XHTML is validated and no need to run the HTML validation hosted on
> w3c web page?
Yes, but be careful.
NB - This only applies for XHTML 1.0, not 1.1 or 2.0
XHTML 1.0 isn't usable on the web, because IE won't work with it. To
get round this you cheat, by using the Appendix C hack. You write
XHTML, but you tell IE that it's really HTML. Because browsers have to
cope with all sorts of rubbish, IE is pretty happy to process this
XHTML document as if it were HTML. However it's still processing it
_as_ HTML, so it's possible that you may have coded something that's
conformant XHTML but not conformant HTML.
It is possible that your XHTML document isn't good practice for HTML.
Using <br></br> is a simple example (you ought to use <br /> instead).
However these errors aren't enough to make it "invalid" from a
validator's point of view. I can't think of an example that's
conformant XHTML yet isn't simultaneously conformant HTML (at least in
an automatically detectable context). Maybe Jukka can point out some
obscure case when this does happen.
You _do_ need to check that your web server serves your XHTML content
"correctly" as text/html, at least when the browser agent behaves like
IE and requests this. A validator would check that for you, but really
you ought to be able to tell anyway.
|
| Similar Threads | Posted | | HTML validation | November 4, 2004, 12:41 am |
| New bulk HTML validation service available | June 4, 2006, 10:23 am |
| html validation - html code help | February 3, 2006, 12:50 pm |
| Rendering "special characters" and html validation | February 28, 2005, 3:16 am |
| help with validation | July 30, 2004, 5:22 pm |
| validation | September 2, 2004, 8:15 am |
| validation | November 28, 2004, 3:12 am |
| POST validation | October 6, 2005, 2:45 pm |
| form validation | November 28, 2004, 1:14 am |
| DTDs, www & validation | December 10, 2004, 10:27 pm |
|