Re: ID and NAME tokens (CDATA problems)

* 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 UTC