[Petal] attributes question

Chris Croome chris at webarchitects.co.uk
Sun Jul 27 15:42:51 BST 2003


Hi

On Sun 27-Jul-2003 at 01:26:38PM +0100, Fergal Daly wrote:
> 
> <option name="aaa" value="bbb" selected>

That is valid HTML [1] but for XHTML [2] this syntax should be used:

  <option selected="selected>Foo</option> 

Chris


[1] http://www.w3.org/TR/html4/interact/forms.html#adef-selected

[2] http://www.w3.org/TR/xhtml1/#h-4.5

-- 
Chris Croome                               <chris at webarchitects.co.uk>
web design                             http://www.webarchitects.co.uk/ 
web content management                               http://mkdoc.com/   


More information about the Petal mailing list