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 ("."). 

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

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 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:06:04 UTC