user5872
1
Q:

how to change tag name in js html


 var p = document.getElementsByTagName("P")[0];

document.renameNode(p, null, "h1");
0

New to Communities?

Join the community