Hi Matt,
This is indeed about XHTML validation. In earlier versions of HTML you could simply use an empty attribute like selected.
However, XHTML doesn't allow it, as it is basically HTML rewritten in XML. XML doesn't allow things like "empty attributes" so you need to give a value.
AFAIK, all the previously empty attributes now take the attribute name as its value, hence selected="selected"
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of
ASP.NET 2.0 Instant Results and
Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.