Home > Article > Web Front-end > How to use radio in html
Many beginners are confused. There is a radio tag in HTML. How to use it? What is the effect of using radio? Today I will teach you how to use radio in HTML.
1. HTML code snippet:
<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. Case screenshots
The above are the usage and case screenshots of radio, there are Friends who need it can continue to pay attention to this site. Have you learned it?
Related recommendations:
The above is the detailed content of How to use radio in html. For more information, please follow other related articles on the PHP Chinese website!