What's new
HTML Forums | An HTML and CSS Coding Community

Welcome to HTMLForums; home of web development discussion! Please sign in or register your free account to get involved. Once registered you will be able to connect with other members, send and receive private messages, reply to topics and create your very own. Our registration process is hassle-free and takes no time at all!

CSS Specificity


New member
One of the most difficult and confusing subjects for me to learn in CSS is "CSS specificity".
It is knowing which selector would take precedence over the formatting of an element.

I found this article explaining the topic on hand:


I hope this explains which selector would take style priority on an element.

There's also a specificity calculator that I found on this link below:


Let me know your thoughts.