Source Code:
Male
Female
Result:
W3Schools.com
- Try it yourself