HTML
CSS
JS
Edit on Codewith.it
<textarea id="text" onkeyup="html()" placeholder="Scrivi qui..."> </textarea> <div id="output"> </div>
#text { width:300px; height:200px; } #output { width:300px; height:200px; border:solid 2px #aaa; background-color:white; }
function html(){ var text = document.getElementById('text'); var output = document.getElementById('output'); output.innerHTML = text.value; }