P粉5295811992023-08-11 00:59:17
It's not complicated, using a CSS selector like the class
attribute is the best styling option in most cases, and then in your stylesheet file, use what you specified for the element class name and implement the desired style.
This way, you always know which element gets the style.
Also, learn about CSS class naming conventions, such as BEM.