Questions d'entretien

Entretien pour Frontend Developer

-

Aptoide

What is CSS Specificity?

Répondre

Réponses aux questions d'entretien

2 réponse(s)

0

It's a rule in CSS to provide priority of interpretation to blocks of style. For example, if you have a DIV element with an ID "example" and a class name "example", and in the stylesheet you have: #example{ background-color: red; } .example{ background-color: green; } The DIV's background color would be red, violating the natural reading flow of the stylesheet (top down), because IDs have higher specificity than classes, which could not override the previous style selected by an ID.

Utilisateur anonyme le

0

It is used to give the styles to the web page

Rakesh.v le

Ajouter des réponses ou des commentaires

Pour commenter ceci, connectez-vous ou inscrivez-vous.