What values can appear in the “selected” attribute of the “option” tag?
问题 I have some markup similar to the following: <select> <option selected=\"selected\">Apple</option> <option selected=\"\">Orange</option> </select> In this case, \"Orange\" shows as the selected item. I would have expected making the selected attribute blank would undo its effects. Is there a way to write this without simply leaving the attribute out? 回答1: Different browser may treat this attribute differently. According to the MSDN documentation (for Internet Explorer): To select an item in