how to get all tags in 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()));