I have an HTML page with many classes. My concern is that I have not handled all element styles. I am looking for a way to get the list of all styles used in my HTML page.
Is there any javascript way to find the list al all HTML classes used for all elements?
Yes, it is possible via Javascript:
const classList = new Set(); // output const allElements = document.querySelectorAll('*'); allElements.forEach(element => { element.classList.forEach(className => { classList.add(className); // Add each class name to the Set }); }); console.log([...classList]);