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