freeCodeCamp/guide/portuguese/html/tutorials/basic-html/radio-button/index.md

620 B
Raw Blame History

title localeTitle
Radio Button Botao de radio

Botao de radio


<!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> 

Os botões de opção podem ser usados para selecionar uma única opção dentre várias opções. Você não tem permissão para escolher 2 ou mais botões de opção no mesmo campo de seleção.