HTML 3.2 PR: Please add CLASS attribute!

Arnoud (
Wed, 20 Nov 1996 20:16:18 +0100

From: (Arnoud "Galactus" Engelfriet)
Subject: HTML 3.2 PR: Please add CLASS attribute!
Date: Wed, 20 Nov 1996 20:16:18 +0100
Message-ID: <>


Why isn't the CLASS attribute available in HTML 3.2? It is a real 
pain that you can't use style sheets on documents and keep them 
HTML 3.2 compliant. 

The addition of the attribute (supported by MS IE 3, so it would
fall under the "current browser" flag) would not hurt *anything*
on non-supporting browsers.  The STYLE element, and the <LINK
REL=stylesheet> method provide a reliable way to include style
information in the document. 

I really don't see a reason not to include this attribute. It
can't be that REL and REV on A, or <FONT COLOR>, are more widely
supported than CLASS. There would be no requirements on the use
of this attribute, just something like "-- for future support of
style sheet--" would be more than enough.

Here are suggested changes/additions to the HTML 3.2 DTD,
based on the 05/11 PR draft from the W3C[0]. As I am not that
familiar with SGML, I would appreciate any corrections.

<!-- I assume that multiple ATTLISTs on an element are permitted -->
<!ATTLIST ( %font | %phrase | %special | %form )
    class  CDATA #IMPLIED

<!ATTLIST ( %block )
    align  (left|center|right) #IMPLIED -- ALIGN on *ALL* block elements? --
    class  CDATA #IMPLIED

<!ATTLIST ( %list )
    class  CDATA #IMPLIED

    class  CDATA #IMPLIED

    nowrap (nowrap)  #IMPLIED
    rowspan NUMBER   1
    colspan NUMBER   1
    width   %Pixels  #IMPLIED
    height  %Pixels  #IMPLIED
    class  CDATA #IMPLIED



- -- 
E-mail: .................... PGP Key: 512/63B0E665
Maintainer of WDG's HTML reference: <>