@NatureSon22
Posted
Using "id" as a selector in CSS is not recommended because it has the highest specificity among all selectors. This means that styles applied to an element with an "id" can be challenging to override, leading to potential conflicts. To avoid such issues, it's better to use classes or compound selectors. If you don't want to create additional class names, you can combine multiple selectors to target specific elements without relying solely on "id" selectors. This approach will make your CSS code more manageable and less prone to conflicts.
Marked as helpful
@suhjiwon95
Posted
Thank you for your suggestion! @NatureSon22