Semantic Form Wrapper
HTML
Hard
3 views
Problem Description
Wrap a login form inside a main and use a heading before it.
Output Format
Print the HTML code.
Constraints
Use main and form properly.
Official Solution
<!doctype html>
<html lang='en'>
<head>
<meta charset='utf-8'>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<title>meetcode login</title>
</head>
<body>
<main>
<h1>Log in to meetcode</h1>
<form action='#' method='post'>
<label>Email <input type='email' name='email' autocomplete='email'></label>
<button type='submit'>Log in</button>
</form>
</main>
</body>
</html>
Solutions (0)
No solutions submitted yet. Be the first!
No comments yet. Start the discussion!