Ques:- What is the difference between class and ID in CSS
Asked In :-
Unyscape Infocom Pvt. Ltd., DREAMORBIT SOFTECH PVT, Object Frontier Software, Addweb solutions, Walstar Technologies, CakeSoft Technologies, Radicle Software, Spectra Medix India, Infostretch solutions, Srijan Technologies,
Right Answer:
In CSS, a class is defined with a dot (.) and can be applied to multiple elements, while an ID is defined with a hash (#) and should be unique to a single element on a page.
In CSS, a class is defined with a dot (.) and can be applied to multiple elements, while an ID is defined with a hash (#) and should be unique to a single element on a page.