When multiple CSS rules conflict, the browser determines which rule to apply based on a priority system. This system is known as the cascade, and it consists of four main factors:
Position: Rules defined later in the stylesheet generally have higher...