Yes, clickbait, I’m so sorry! Of course, divs are not bad. For example, they can be really useful,…
- …when you need additional elements for styling.
- …for structuring content, when there’s no other suitable element.
- …when you need custom landmarks.
Even though there’s nothing wrong with the
div per se, some people, including me, still like to complain when they’re not used consciously.