@MikDra1
Posted
Using IDs in HTML is still useful because they allow you to quickly and uniquely reference specific elements, especially for JavaScript. While querySelector can do the same thing, getElementById is faster and simpler when you need to select just one element.
Regarding BEM (Block Element Modifier), itβs meant for class names, not IDs. BEM helps keep your CSS organized by using structured class names. Since IDs are already unique and serve a different purpose, there's no need to use BEM with them. It would just make things more complicated.
Hope you found this comment helpful π
Good job and keep going πππ
Marked as helpful