Loading ...
Sorry, an error occurred while loading the content.

538Re: [NH] Warning: expected "html PUBLIC"

Expand Messages
  • Grant
    Jun 1, 2000
    • 0 Attachment
      > I took off the last half of the following, because I thought
      > it was a like to www.w3.org and those are the guys causing me
      > all these headaches. ;)
      >
      >
      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
      "http://www.w3.org/TR/html4/loose.dtd">

      DOCTYPE the type of document in your case is a PUBLIC document based on the
      HTML 4.01 Transitional DTD.
      first quote is the name of the DTD
      "-//W3C//DTD HTML 4.01 Transitional//EN"
      the 2nd quote is the url where the DTD can be found.
      "http://www.w3.org/TR/html4/loose.dtd"

      .The DTD (document type definition) defines exactly what elements and
      attributes can be contained in your document.
      When you validate a document you validate it against the DTD that the
      document is linked to.

      If you set the doctype to system then you can locate the DTD on your
      harddrive.
      <!DOCTYPE HTML system "-//W3C//DTD HTML 4.01 Transitional//EN"
      "C:\dtds\loose.dtd">

      There is nothing stopping you altering this local DTD and give certain
      elements attributes like TOPMARGIN, BORDERCOLOR or any other attributes you
      like so it will comply to a certain propriety browser. If you use these
      attrributes in your document and defined these attributes in the DTD then
      your document would VALIDATE. In short validation has got nothing to do with
      how a browser displays your documents but whether or not it complies to a
      DTD.

      IMHO every HTML clipbook library should be based on a DTD.The xhtml library
      being based on the xhtml strict DTD is an example how this can be done. In
      fact the library is an attempt to translate a DTD into a clip library.
      If you want to check it out the xhtml library is available at.
      www.markup.co.nz/xhtml/libraries/xhtml.zip
    • Show all 11 messages in this topic