What is the difference between a class and an ID?

Class is a way of using HTML elements for styling. They are not unique and have multiple elements. Whereas ID is unique and it can be assigned to a single element. 


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *