I'm currently assisting with CSS tasks and have noticed that some developers have included inline CSS in the code. Our preference is to avoid using inline CSS, so I am curious if there is a way to detect the presence of inline CSS within the <body>
element using JavaScript?
If this detection is achievable, my intention is to implement an analytics tag to monitor pages that contain inline styles.
I have attempted to search for a solution to this issue, but all the responses I have come across focus on identifying specific styles or element styles. My challenge lies in not knowing which styles have been applied to which elements, and where these styles are being used (especially considering we have 1,000 pages, making manual inspection quite daunting).