checkboxes checked code example Example: html checkbox checked <input type="checkbox" name="ok" value="ok"> <label for="ok">I agree</label>