Re: class="<valid chars here>"

"Dustin Boyd" <[email protected]>
Newsgroups gmane.comp.web.html.general
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, Nov 20, 2008 at 03:23, Tei  wrote:
> I have a question.
>
> Is that class values valid?
>
> class="my-system"
>
> class="my_system"
>
> class="my/System"
>
> class="[email protected]"
>
> is class case-sensitive?
>
> class="ultraTile"
> class="ultratile"

Yes, those are all valid in HTML 4.01.  @class contains a
whitespace-separated list of CDATA items.  The definition of CDATA for
HTML 4.01 is as follows:

    CDATA is a sequence of characters from the document character set
and may include character entities. [1]

Unlike @id and @name, @class appears to be completely unrestricted in
HTML 4.01.  However, when using XHTML, you must remember that the
definition of CDATA is governed by XML.  The XML grammar specifies
that character data (CDATA) is specified by the following grammar
declaration:

    CharData ::= [^' [^'. [4]

I hope this helps!

RpgFan

[1] - http://www.w3.org/TR/html4/types.html#type-cdata
[2] - http://www.w3.org/TR/xml/#NT-CharData
[3] - http://www.w3.org/TR/xml/#dt-chardata
[4] - http://www.w3.org/TR/xml/#dt-cdsection

- --
Waiting patiently for Windows 7, XHTML 2.0, CSS 3.0, PHP 6.0, the
ratification of C++0x, and the day that I can code without logic
troubles.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: http://getfiregpg.org

iEYEARECAAYFAkkljKcACgkQXd35/YlIavfiKACeL6wX/eP9kGWKxhcIYuqxXHM6
EjMAn0PWS9av8lODvS+T7iVxrlrnUWSM
=a2St
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.