Menu
×
×
Correct!

Exercise:

1. Create two radio buttons and place them inside the form element, under the text "Favorite color".

2. Add the name attribute with a value of "color" to both radio buttons.

3. Also add a value attribute and specify "blue" for the first and "red" for the second.

4. Lastly, specify some text that corresponds with the values.

Hint: <input type="radio" name="color" value="blue">Blue.

Edit This Code:
Result:
Correct Code:
Result:
Go to w3schools.com
Reset Score
Close This Menu

 

HTML Attributes
HTML Headings
HTML Paragraphs
HTML Styles
HTML Formatting
HTML Quotations
HTML Comments
HTML CSS
HTML Links
HTML Images
HTML Tables
HTML Lists
HTML Classes
HTML Id
HTML Iframes
HTML Scripts
HTML Computercode
HTML Forms
HTML Form Elements
HTML Input Types
HTML Form Attributes





×

Reset the Score?

This will reset the score of ALL 91 exercises.

Are you sure you want to continue?



×

Congratulations!

You have finished all 91 HTML exercises.

Share your score on facebook: