23 lines
		
	
	
		
			530 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
		
		
			
		
	
	
			23 lines
		
	
	
		
			530 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| 
								 | 
							
								---
							 | 
						||
| 
								 | 
							
								title: Radio Button
							 | 
						||
| 
								 | 
							
								---
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								# Radio Button
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								```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> 
							 | 
						||
| 
								 | 
							
								```
							 | 
						||
| 
								 | 
							
								Radio buttons can be used to select a single option out of multiple options. You aren't allowed to choose 2 or more radio buttons in the same selection field.
							 |