The proper format of checkbox in HTML is...
<input type="chekbox" />
<input type="chekbox" checked="" />
...for unchecked/checked respectively...
If you want to turn the state of the checkbox to yes/no string yous have to use some JavaScript like this:
var ans = document.getElementById('checkbox_id').checked ? 'yes' : 'no';