Так что немного потерянный здесь, я не уверен, как к этому подойти, я сделал HTML и CSS, но не уверен, как это сделать в JS.
![JS instructions](https://i.stack.imgur.com/5CLgl.png)
![Task 1](https://i.stack.imgur.com/KCUn3.png)
![Task 2](https://i.stack.imgur.com/k6ovA.png)
![Task 3](https://i.stack.imgur.com/NBS4m.png)
Мой HTML:
<!doctype html>
<html lang="en">
<head>
<title> Task 1 </title>
<meta charset="utf-8">
<script src="DomNodes.js"></script>
<style>
#output {
border: blue 5px solid;
padding: 10px;
margin-bottom: 10px;
margin-top: 10px;
width: 50%;
}
#output p {
padding:10px;
border: black 1px dashed;
}
</style>
</head>
<body>
<h2> TASK 3 - Creating, Appending and Deleting Nodes in the DOM Tree </h2>
<p> Type in text below, click add to add as paragraph. <button id="add"> ADD </button> </p>
<textarea id ="input" rows="10" cols="60">
</textarea><br>
<button id="delete">Delete Last Paragraph</button>
<br><br>
<h2> Added Paragraphs </h2>
<div id="output">
</div>
</body>
</html>