The most recent project is to write the front-end yourself and relearn the basic knowledge of the front end.
Generally, in the CSS stylesheet, the above will be covered by the following.
So, in normal terms, the following CSS style should be written in blue.
But as a result, the test text is yellow, and the result of the tag selector is overwritten by the attribute selector, which is the attribute selector.
Conclusion: the weight of the ID selector is > the weight of the class selector = the weight > of the attribute selector; the element selector (ID selector and class selector can be verified by itself),
Generally equal weight is covered by location, and the selector with different weights will not change the location.