Checklist Form with List

Checklist Form with List

Hard HTML Tables & Lists 20 views
Explanation Complexity

Problem Statement

Create a checklist using ul where each li contains a checkbox.

Input Format

No input.

Output Format

Print the HTML code.

Constraints

Use checkboxes inside list items.

Input / Output Format

Input Format
No input.
Output Format
Print the HTML code.
Constraints
Use checkboxes inside list items.

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'>
    <ul>
      <li><label><input type='checkbox' name='task1'> Read notes</label></li>
      <li><label><input type='checkbox' name='task2'> Practice on meetcode</label></li>
    </ul>
  </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'>
    <ul>
      <li><label><input type='checkbox' name='task1'> Read notes</label></li>
      <li><label><input type='checkbox' name='task2'> Practice on meetcode</label></li>
    </ul>
  </form>
</body>
</html>
Please login to submit solutions.
Editor
Output

                                        
Please login to submit solutions.