html <radio>單選按鈕表單控件
radio單選按鈕應用截圖
一、單選按鈕控件語法 - TOP
<input name="Fruit" type="radio" value="" />
使用html input標簽,name為自定義,type類型為“radio”的表單,
二、radio單選按鈕語法案例 - TOP
1、html代碼片段:
- <form action="" method="get">
- 您最喜歡水果?<br /><br />
- <label><input name="Fruit" type="radio" value="" />蘋果 </label>
- <label><input name="Fruit" type="radio" value="" />桃子 </label>
- <label><input name="Fruit" type="radio" value="" />香蕉 </label>
- <label><input name="Fruit" type="radio" value="" />梨 </label>
- <label><input name="Fruit" type="radio" value="" />其它 </label>
- </form>
2、案例截圖
html radio用法案例截圖
3、html單選radio案例在線樣式
演示:案例演示
擴展知識:
1、html input
2、html 多選按鈕checkbox
3、html input提交按鈕
如需轉載,請注明文章出處和來源網址:http://www.rs2pl.com/html/h490.shtml