W3C home > Mailing lists > Public > www-html@w3.org > July 2003

Re: ID and NAME tokens (CDATA problems)

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Tue, 15 Jul 2003 17:59:16 +0200
To: "Peter Foti (PeterF)" <PeterF@SystolicNetworks.com>
Cc: "'www-html@w3.org'" <www-html@w3.org>
Message-ID: <3f3a1c58.150711501@smtp.bjoern.hoehrmann.de>

* Peter Foti (PeterF) wrote:
>The HTML 4 recommendation states that:
>
>ID and NAME tokens must begin with a letter ([A-Za-z]) and may be followed
>by any number of letters, digits ([0-9]), hyphens ("-"), underscores ("_"),
>colons (":"), and periods ("."). 
>
>http://www.w3.org/TR/html4/types.html#type-cdata

>Thus, if a form is defined as follows:
>
><form action="" name="myform">
>   <input name="readme.txt-title">
>   <input name="readme.txt-author">
></form>

Please note that the name attributes in HTML are CDATA attributes not
NAME or ID attributes, thus you could also use e.g. name="foo bar".
Received on Tuesday, 15 July 2003 11:59:35 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:56 GMT