Label Linked by for/id
HTML
Easy
3 views
Problem Description
Create a label that uses for/id for an input with id 'email'.
Output Format
Print the HTML code.
Constraints
Use matching for and id.
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='email'>Email</label>
<input type='email' id='email' name='email'>
<button type='submit'>Submit</button>
</form>
</body>
</html>
Solutions (0)
No solutions submitted yet. Be the first!
No comments yet. Start the discussion!