24 lines
		
	
	
		
			541 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
		
		
			
		
	
	
			24 lines
		
	
	
		
			541 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
|   | --- | ||
|  | title: Radio Button | ||
|  | localeTitle: 单选按钮 | ||
|  | --- | ||
|  | # 单选按钮
 | ||
|  | 
 | ||
|  | ```html | ||
|  | 
 | ||
|  | <!DOCTYPE html>  | ||
|  |  <html>  | ||
|  |  <body>  | ||
|  |   | ||
|  |  <form action="/action_page.php">  | ||
|  |   <input type="radio" name="gender" value="male"> Male<br>  | ||
|  |   <input type="radio" name="gender" value="female"> Female<br>  | ||
|  |   <input type="radio" name="gender" value="other"> Other<br>  | ||
|  |   <input type="submit" value="Submit">  | ||
|  |  </form>  | ||
|  |   | ||
|  |  </body>  | ||
|  |  </html>  | ||
|  | ``` | ||
|  | 
 | ||
|  | 单选按钮可用于从多个选项中选择单个选项。您不能在同一选择字段中选择2个或更多单选按钮。 |