Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Post History
Without knowing your use case, the simplest modification would just be to target everything: document.querySelectorAll("*").forEach((e) => { e.style.fontFamily = "arial"; }); (As an as...
Answer
#1: Initial revision
Without knowing your use case, the simplest modification would just be to target everything: ```javascript document.querySelectorAll("*").forEach((e) => { e.style.fontFamily = "arial"; }); ``` (As an aside, if you want to target the body element, just use [`document.body`](https://developer.mozilla.org/en-US/docs/Web/API/Document/body). No need for selectors.)