how to get all elements of specific tag using javascript 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()));