Html code isnt working

on clicking the ADD button it does not append the given string in the unordered list tag

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        *{
            font-family: "Arial",cursive;
        }
    </style>

</head>
<body>
<label>
    <input id="todo">
</label>

<button id="btn">ADD</button>
<ul id=list">
    <li>Task 1</li>
</ul>
<script>
    let Todo_box=document.getElementById("todo")
    let todo_list=document.getElementById("list")
    let button=document.getElementById("btn")
    button.onclick=function() {
        let task = Todo_box.value
        let new_element = document.createElement("li")
        new_element.innerText=task;
        todo_list.appendChild(new_element)
    }
</script>
</body>
</html>

Hey @devchopra999_11c6416ab7f09bbf,
In this line–> <ul id=list">, double quotes were closed but not open correct it, then it will work fine.

that worked thank you sir

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.