I have a Javascript function that shows a text in an element with a "typewriter" effect, however I wanted to make this text come within a P (For line break) tag. can anybody help me? Thanks in advance.
function EE(texto,ClassElemento,tempo){
var char = texto.split('').reverse();
var typer = setInterval(function () {
if (!char.length) return clearInterval(typer);
var next = char.pop();
document.querySelector(ClassElemento).innerHTML += next;
}, tempo);
}