If we can validate the html page without internet connection, the DTD file must be somewhere on local machine.
Can someone tell me the location of the DTD file OR how the page can get validated without internet connection?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
How can the page be validated without an internet connection? There are two obvious possibilities.
First, for any DTD, a special-purpose program can be constructed to validate documents against that DTD; since all the rules of the DTD are embodied by such a program, the DTD itself is not needed for such a program to run.
Second, any program may ship with a local copy of the DTD in question. The HTML DTDs are relatively stable, so it’s not difficult to cache a local copy, and in fact the W3C systems staff recommends that copies be cached locally.
How can you find it? On a Unix box, you might type
find / -name xhtml1-strict.dtdorfind / -name html401.dtd; on a Windows box, you’ll have to identify and run a command with similar functionality.