Understanding “Class” and “ID”

These two selectors often confuse beginners. In CSS, class is represented by a dot "." while id is a hash ‘#". In a nutshell id is used on style that is unique and don’t repeat itself, class on the other side, can be re-use. Class vs. ID It is often hard to decide when to use a class versus an id for an element. Here is an easy way to...