Source Code:
Select your favorite color:
Result:
W3Schools.com
- Try it yourself