Min and Max (Number)
HTML
Medium
2 views
Problem Description
Create a number input for 'Daily goal' from 1 to 50.
Output Format
Print the HTML code.
Constraints
Use min and max.
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='post'>
<label>Daily goal
<input type='number' name='goal' min='1' max='50'>
</label>
<button type='submit'>Set</button>
</form>
</body>
</html>
Solutions (0)
No solutions submitted yet. Be the first!
No comments yet. Start the discussion!