JSFiddle - React, Tailwind, and code Playground

HTML

<body>
  <h1>Menu</h1>
  <div id="container1">
    <div id="console">
      <p id="console_content">
  
      </p>
    </div>
    <div>
      <input id="commandline" type="text" name="command_line" placeholder="Command line">
      <input id="commandButton" type="button" name="command_button" value="confirm" onclick="showVal();">
    </div>
  </div>

</body>
<script>
  function showVal() {
    var tmp = document.getElementById("commandline").value;
    document.getElementById('console_content').innerHTML += (tmp + "<br/>");
  }
</script>

CSS

h1 {
  color: black;
  text-align: left;
}

p {
  color: black;
  text-align: left;
  font-size: 20px;
}

#container1 {
  width: 300px;
}

#console {
  border: 5px solid dodgerblue;
  background-color: white;
  height: 300px;
  padding-left: 5px;
  margin-bottom: 5px;
  position: relative;
  width: inherit;
}

#commandline {
  width: inherit;
  border: 5px solid dodgerblue;
  height: 30px;
  width: 300px;
  padding-left: 5px;
  font-size: 18px;
}