Hızlı yanıt: kod örneği
Strictly speaking, you should put something that makes sense - according to the spec here, the most correct version is:For HTML, you can also use the empty attribute syntax, , or even simply (for stricter XHTML, this is not supported).Effectively, however, most browsers will support just about any value between the quotes. All of the following will be checked:And only the following will be unchecked:See also this similar question on .
<input name=name id=id type=checkbox checked=checked>
checked=""
checked
<input name=name id=id type=checkbox checked><input name=name id=id type=checkbox checked=""><input name=name id=id type=checkbox checked="yes"><input name=name id=id type=checkbox checked="blue"><input name=name id=id type=checkbox checked="false">
<input name=name id=id type=checkbox>
disabled="disabled"