Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    New to the CF scene
    Join Date
    May 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    HTML 4.01 DTD error?

    there is something i cannot make sense of in the DTD for the HTML 4.01 specs (all three doctypes).

    For the head element, the dtd is as follows:

    <!-- %head.misc; defined earlier on as "SCRIPT|STYLE|META|LINK|OBJECT" -->
    <!ENTITY % head.content "TITLE & BASE?">

    <!ELEMENT HEAD O O (%head.content; ) +(%head.misc; ) -- document head -->
    <!ATTLIST HEAD
    %i18n; -- lang, dir --
    profile %URI; #IMPLIED -- named dictionary of meta info --
    >


    the part that does not seem to make sense is this:

    <!ELEMENT HEAD O O (%head.content; ) +(%head.misc; ) -- document head -->


    shouldn't there be an '+' (addition) symbol after the '(%head.misc; )' parameter entity? %head.misc is defined as "SCRIPT|STYLE|META|LINK|OBJECT" and i am sure that we can have multiple scripts, styles, metas etc. elements in the head.

    thanks
    Last edited by BYS2; 05-10-2006 at 01:32 AM.


 

Posting Permissions

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