Form Error Hint Text
HTML
Medium
2 views
Problem Description
Connect help text to input using aria-describedby.
Output Format
Print the HTML code.
Constraints
Use id and aria-describedby.
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 for='u1'>Username</label>
<input id='u1' name='username' aria-describedby='uHelp'>
<p id='uHelp'>Only letters and numbers.</p>
<button type='submit'>Save</button>
</form>
</body>
</html>
Solutions (0)
No solutions submitted yet. Be the first!
No comments yet. Start the discussion!