Option value

I have some questions about option value.

In this sample…


	<option value="byDate">Date</option>
	<option value="by-date">Date</option>
	<option value="By Date">Date</option>
	<option value="date">Date</option>

1.) What format do you use for option value?

2.) Does it matter if I use a keyword like “date”?

Sincerely,

Debbie

these 4 format of option values are valid.
and am used

&lt;option value="byDate"&gt;Date&lt;/option&gt;
&lt;option value="by-date"&gt;Date&lt;/option&gt;
&lt;option value="date"&gt;Date&lt;/option&gt;

The date keyword does not affect the option value.

It is not good to use spaces in there. Try to replace them with _ or -

Why not?

As far as I know, the value attribute causes no compatibility issues at all in any browsers, and the spaces are encoded properly both in the POST and GET requests.