Validation 错误行289,第13列:元素“的结束标记”;选择";哪一个是不开放的

Validation 错误行289,第13列:元素“的结束标记”;选择";哪一个是不开放的,validation,xhtml,Validation,Xhtml,错误行289,第13列:未打开的元素“select”的结束标记 尝试选择=\\'selected\'而不是doctype xhtml中不允许的单个选定项 </select> &nbsp; &nbsp; &nbsp; <input type="image" src="http://ncrads.com/… <select name="category" id="category" style="font-family: verdana;fon

错误行289,第13列:未打开的元素“select”的结束标记

尝试选择=\\'selected\'而不是doctype xhtml中不允许的单个选定项

</select> &nbsp; &nbsp; &nbsp; <input type="image"  src="http://ncrads.com/…
<select   name="category" id="category" style="font-family: verdana;font-size: 11px; border: 1px solid rgb(102, 102, 102);width:120px;">**
    <option value="ALL">---All Category ---</option>
        <?php
            $sql1= 'SELECT cd.categories_name, cd.categories_id, c.category_id, c.parent_id FROM categories c, categories_description cd WHERE cd.categories_id = c.category_id AND c.parent_id = 0';
            $res1= q($sql1);
            $space ='&nbsp;&nbsp;&nbsp;';
            if($res1){
                while($row1 = f($res1)){
                if($row1['categories_id'] == $_SESSION['categorys']){
                    echo "<option value=\"".$row1['categories_id']."\" selected>".$row1['categories_name']."</option>";
                    }
                    else{
                    echo "<option value=\"".$row1['categories_id']."\">".$row1['categories_name']."</option>";
                    }
                }
            }
        ?>
</select> &nbsp; &nbsp; &nbsp; <input type="image"  src="http://ncrads.com/images/search.jpg" name="submit" value="submit"  align="top"/>