General Selector :
1. Tag Selector: Using the tag Selector, all the same tags will be selected. (For example: Select Div all div is selected.) )
2. Class selector: If an element has multiple class selector styles set, these class selectors will be set. However, if the style in the class selector is set to repeat, it is set according to the nearest principle. "The general selector is the most commonly used selector"
(such as: <div class= "one" >
. one{
color:red;
Background:blue;
}
. both {
Color:yellow;
} color has been set, so take the nearest principle to choose yellow, but the background is not set, choose Blue. )
3.id selector: (identity) Unique identifier, ensuring uniqueness. But only letters, numbers, underscores, and can only start with a letter, cannot be named after the tag name. "Normal selector is the least used selector"
Priority: ID Selector > class selector > tag Selector.
CSS Selector--General Selector