Not Getting Close Tag with CHtml::tag

$dropDownDistricts = "<input type='checkbox' value=''>All Districts</input>";

            foreach($data as $value=>$name)

                $dropDownDistricts .= CHtml::tag('input', array('type'=>'checkbox', 'value'=>$value),CHtml::encode($name),true);

this is not generating the closing </input> tag

The input element doesn’t have a separate closing tag. The text “All Districts” should be in a label tag. You should assign a value in the checkbox value attribute and a name in the name attribute to identify the checkbox when it is submitted.