Radio Buttons (Difficulty)
HTML
Easy
3 views
Problem Description
Create three radio buttons named difficulty: Easy, Medium, Hard.
Output Format
Print the HTML code.
Constraints
Use same name for all radios.
Official Solution
<!doctype html>
<html lang='en'>
<head>
<meta charset='utf-8'>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<title>meetcode</title>
</head>
<body>
<form action='#' method='get'>
<p>Difficulty</p>
<label><input type='radio' name='difficulty' value='easy'> Easy</label>
<label><input type='radio' name='difficulty' value='medium'> Medium</label>
<label><input type='radio' name='difficulty' value='hard'> Hard</label>
<button type='submit'>Filter</button>
</form>
</body>
</html>
Solutions (0)
No solutions submitted yet. Be the first!
No comments yet. Start the discussion!