Label Linked by for/id

Label Linked by for/id

Easy HTML HTML Forms 31 views
Explanation Complexity

Problem Statement

Create a label that uses for/id for an input with id 'email'.

Input Format

No input.

Output Format

Print the HTML code.

Constraints

Use matching for and id.

Input / Output Format

Input Format
No input.
Output Format
Print the HTML code.
Constraints
Use matching for and id.

Examples

Input:
Output:
(HTML code)

Example Solution (Public)

HTML
<!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>

Official Solution Code

<!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>
Please login to submit solutions.
Editor
Output

                                        
Please login to submit solutions.