|
-
Jan 4th, 2002, 08:56 PM
#1
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?
-
Jan 7th, 2002, 12:29 PM
#2
Black Cat
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.
-
Jan 7th, 2002, 03:23 PM
#3
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|