freeCodeCamp/guide/english/certifications/responsive-web-design/basic-html-and-html5/create-a-set-of-radio-buttons/index.md

14 lines
717 B
Markdown
Raw Normal View History

2018-10-12 19:37:13 +00:00
---
title: Create a Set of Radio Buttons
---
## Create a Set of Radio Buttons
To solve this challenge you can break it into pieces to better understand the steps:
- Create the 'containers': lay down two `label` elements and give them the text content the challenge asks you ( one must have the text 'Indoor', one 'Outdoor', capitalization matter);
- Create the 'content' : a radio button it's just a `input` element with `type=radio` (create two of them);
- Create a _group_ of radio buttons: give both of your radio buttons the attribute `name` set to the same value ( the challenge instructions state that the group has to be named `indoor-outdoor`);
- Nest each radio button in a label;
Good luck!