dom dapatkan semua tag

const allElements = document.getElementsByTagName("*");
const allTagNames = new Set([].map.call(allElements, el => el.nodeName.toLowerCase()));
Programming Bird