<!DOCTYPE html>
<html lang="en">
    <input style="height:5rem;" value="<h1>Example</h1>" size="60" type="text" id="code" />
  <hr />
  <div id="output">
const code = document.getElementById('code');
const output = document.getElementById('output');

code.oninput = () => { 
// insert the input (#code) value into the div that its id is 'output' 
  output.innerHTML = code.value;

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.