HTML CSS Reference/HTML Attributes Reference/checked
"checked" Example
<source lang="html4strict">
<HTML> <head><Title>Example For checked</Title></head> <BODY> <form>
Purchase:
<input type="checkbox" value="checkbox" checked>CD
<input type="checkbox" value="checkbox">DVD
Credit Card:
<input type="radio" value="radiobutton" checked>VISA <input type="radio" value="radiobutton">MASTERCARD <input type="radio" value="radiobutton">DISCOVER <input type="radio" value="radiobutton">AMERICAN EXPRESS
</form> </BODY> </HTML>
</source>
checked is applied to
<source lang="html4strict">
+----------------+--------------------------------------------------------------+ | Applied_To |<input type="checkbox"> <input type="radio"> | +----------------+--------------------------------------------------------------+
</source>
"checked" Syntax and Note
<source lang="html4strict">
Note:
This attribute defines whether a checkbox or radio button is selected or not. Default value is not selected.
Syntax:
<input checked>
</source>