Question: what is the difference between class and id attribute in html?
Answer: Difference between id and class attribute: The only difference between them is that “id” is unique in a page and can only apply to at most one element, while “class” selector can apply to multiple elements.