Conflicting styles in CSS can be resolved by using inline styles, increasing the specificity of selectors, and reordering the styles in the style sheet.
12.
What is the significance of the order of styles in the CSS cascade?
The order of styles in the CSS cascade determines which styles take precedence in case of conflicts, with later styles overriding earlier ones if they have equal or higher specificity.
13.
Which selector has higher specificity, an ID selector or a class selector?
The specificity value (0,1,0,0) represents an ID selector in CSS, as it has a specificity of (0,1,0,0), with the second part representing the specificity of ID selectors.
15.
How can the specificity of a CSS rule be increased?
If conflicting styles have the same specificity and order in the style sheet, the browser applies the style declared last, as styles cascade from the top of the style sheet to the bottom.
17.
What is the correct way to override a CSS style declared in an external style sheet?