How to use radio in html

php中世界最好的语言
Release: 2017-11-20 11:18:30
Original
18939 people have browsed it

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>
Copy after login

2. Case screenshots

How to use radio in html

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:

Methods to optimize HTML to improve web page performance


Four easy to use Free online HTML editor


css mouseover animation

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template