HTML CSS Reference/HTML Attributes Reference/checked

Материал из Web эксперт
Перейти к: навигация, поиск

"checked" Example

<head><Title>Example For checked</Title></head>
   <input type="checkbox" value="checkbox" checked>CD
   <input type="checkbox" value="checkbox">DVD 
   <p>Credit Card:</p>
   <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

checked is applied to

| Applied_To     |<input type="checkbox">         <input type="radio">          |

"checked" Syntax and Note

This attribute defines whether a checkbox or radio button is selected or not. 
Default value is not selected.
<input checked>