Results 1 to 3 of 3

Thread: A DTD question

  1. #1
    Tygur
    Guest

    A DTD question

    Is the HTML 4.01 DTD at www.w3.org supposed to be a valid DTD?

    The element declarations in there are a bit unfamiliar. Here are two of them, for example:
    <!ELEMENT HR - O EMPTY -- horizontal rule -->
    <!ELEMENT Q - - (%inline;)* >

    The problem areas are underlined. What do the "- -" and the "- O" mean and are they really supposed to be there?

    Also, are there really supposed to be comments in the tag like that?

  2. #2
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    I don't know -- is there a difference between XML DTD and SGML DTD?
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  3. #3
    Tygur
    Guest
    Avtually, I had already found out what the difference was and forgot about this thread.


    Yeah, the HTML DTD at the w3c site is an SGML DTD and the DTD's we're all used to are XML DTD's. There are some differences. The XML DTD is simpler.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width