how to set paragraph tag on input

Solutions on MaxInterview for how to set paragraph tag on input by the best coders in the world

showing results for - "how to set paragraph tag on input"
Mats
25 Jan 2020
1<!DOCTYPE html>
2<html lang="en">
3
4<head>
5    <meta charset="UTF-8">
6    <meta http-equiv="X-UA-Compatible" content="IE=edge">
7    <meta name="viewport" content="width=device-width, initial-scale=1.0">
8    <title>Document</title>
9</head>
10
11<body>
12    <input type="text" id="input">
13<p id="demo"></p>
14</body>
15<script>
16    let a = document.getElementById("input")
17    document.getElementById("demo").innerHTML = a
18</script>
19</html>