运行 ❯
获取您
自己的
网站
×
更改方向
保存代码
更改主题,深色/浅色
前往 Spaces
<!DOCTYPE html> <html> <head> <style> label { display: block; margin-top: 10px; } input:checked { outline: 1px solid red; } </style> </head> <body> <h1>Demo of :checked</h1> <form> <p>Select gender:</p> <label><input name="gender" type="radio" value="male" checked> Male</label> <label><input name="gender" type="radio" value="female"> Female</label> <label><input name="gender" type="radio" value="other"> Other</label> <p>Select transport:</p> <label><input name="bike" type="checkbox" checked>I have a bike</label> <label><input name="car" type="checkbox">I have a car</label> </form> </body> </html>