how to get all elements of a document html code example
Example: dom get all tags
const allElements = document.getElementsByTagName("*");
const allTagNames = new Set([].map.call(allElements, el => el.nodeName.toLowerCase()));
const allElements = document.getElementsByTagName("*");
const allTagNames = new Set([].map.call(allElements, el => el.nodeName.toLowerCase()));