Discussion Forum | Board Infinity

Differentiate between the ID and class

Differentiate between the ID and class.

1 Like

An ID selector is the name preceded by the hash character ("#") whereas class selector is a name preceded by a full stop (“.”). ID selector can be used to identify only one element whereas class selector can be used to identify more than one element