css specificity interview question

Speci­ficity allows browsers to decide which CSS prop­erty val­ues are the most rel­e­vant to an ele­ment and, there­fore, will be applied. Speci­ficity only applies when the same ele­ment is tar­geted by mul­ti­ple dec­la­ra­tions. Inline…