HTML5 input

There are many types of HTML inputs that you can do in js. One that can be used for player inputes using html is text boxes You can use the response of the textbox to run code there is an example below

%%HTML
<head>
    <body>
        <input type="text" id="input" name="userInput">
        <text id="output"></text>
    </body>
</head>

<script>
    const input = document.getElementById('input');
    const output = document.getElementById('output');
    input.addEventListener('input', function() {
        output.innerText = input.value;
    });
</script>

HTML DOM

html dom is a way for scripts to apply an output onto the screeen in text,images, and many more. Html dom is mainly made inside of a div

%%HTML

<head>
    <body>
        <div id="testOutput">
            <text id="outputText">HELLO</text>
        </div>
    </body>
HELLO