by Osmond » Thu Jan 30, 2014 8:47 pm
Both parts of this declaration help describle the doctype that will be used to parse and validate the XHTML code. You are right. This whole "Doctype" subject is confusing. Here is a shot at an answer for you: both parts of the Doctype declaration will help the various browsers/validators parse/validate your code. The reason the PUBLIC part is "optional" is because that part is basically just a description of the XML version you are using. The PUBLIC part also supposedly points the browser to a "local" version of the DTD,(whatever "local" means.)The reason the SYSTEM part is required is because that part is a link to the exact location of the document on the W3C site against which your code will be validated.(The W3C is "World Wide Web Consortium", and is the group that sets the standards for Web code.)Here is a link to a site that will give you a detailed description of the meaning of each part of the Doctype. This site contains a good explanation for you, and there is no point in my doing a "cut and paste" of it. So just go to this link, and then scroll down almost to the bottom of the page, to the paragraph that has the heading of "Line by Line Description". http://www.uninetnews.com/xhtml/doctype.phpHope this helps. Sources: This is my opinion, but it is(somewhat) backed up by the link given in my answer. exit 73 months ago Please sign in to give a compliment. Please verify your account to give a compliment. Please sign in to send a message. Please verify your account to send a message.