<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="./css/main.css">
<script src = "./js/main.js"></script>
</head>
<body>
<h1>To do List</h1>
<form id="todoForm">
<input type = "text" id="todoInput">
<button type = "button" onclick = "todoList()">Click me</button>
</form>
<ul id = "todoList"></ul>
</body>
</html>
function todoList() {
var item = document.getElementById("todoInput").value
var text = document.createTextNode(item)
var newItem = document.createElement("li")
newItem.appendChild(text)
document.getElementById("todoList").appendChild(newItem)
}