What is the difference between the ‘id’ attribute and the ‘class’ attribute of HTML elements?
Sandhya Answered question June 23, 2023
A Class name can be used by multiple HTML elements, while an ID name must only be used by one HTML element within the page.
Sandhya Answered question June 23, 2023
