Diego
You may find that using OPTGROUP eg:
<optgroup label="Option name">
is better still as: "The optgroup tag groups options in a select box. It requires a label attribute, the value of which is displayed as a non-selectable pseudo-heading preceding that group in the drop-down list of visual browsers" - http://www.htmldog.com/guides/htmladvanced/forms/
Neerav Bhatt http://www.bhatt.id.au Web Development & IT consultancy
http://www.bhatt.id.au/blog/ - Ramblings Thoughts http://www.bookcrossing.com/mybookshelf/neerav
Diego Diaz wrote:
Thanks Bert and Natalie :)
Bert wrote:
G'day
I try validate <option selected> but the validator says:
"the name and VI delimiter can be omitted from an attribute specification only if SHORTTAG YES is specified"
This form is posible to validate ?
http://www.w3.org/TR/xhtml1/#h-4.5
XML does not support attribute minimization. Attribute-value pairs must be
written in full. Attribute names such as compact and checked cannot occur in
elements without their value being specified.
------------
To fix the problem, change your option as follows:
<option selected="selected">Option name</option>
Regards -- Bert Doorn, Web Developer Better Web Design www.bwdzine.com Fast-loading, user-friendly websites
****************************************************** The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help ******************************************************
****************************************************** The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help ******************************************************
****************************************************** The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help ******************************************************