Define the location of the style properties
1. tag style attribute
2. Write in a style tag
3. defined in the CSS file
Selector : browser by choosing to add CSS styles to meet the conditions of HTML elements
id selectors
class selectors
tag selector
// priority
// the style property is not repeated is not overwritten
//! important priority will be to do the upgrade, this selector-based
bank selector
descendant selectors
wildcard selector
/ Wildcard selector matches any HTML elements in the HTML document, the following syntax: /
*{
declaration1;
declaration2;
…
}
Pseudo-classes