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

24 lines
620 B
Markdown
Raw Normal View History

---
title: Radio Button
localeTitle: Botao de radio
---
# Botao de radio
```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>
```
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.