Differentiate Class selector from ID selector?

Asked: Apr 14, 2023

While an overall block is given to class selector, ID selector prefers only a single element differing from other elements. In other words, ID are uniques while classes are not. Its possible that an element has both class and ID.

Asked by brijesh

Answers (0)

No answers yet. Be the first to answer!