* ID's are unique

Each element can have only one ID

Each page can have only one element with that ID


* Classes are NOT unique

You can use the same class on multiple elements.

You can use multiple classes on the same element.


The “id=something” can be used to style one HTML element, whereas the “class=something” could be used to style multiple elements.


https://css-tricks.com/the-difference-between-id-and-class/


Posted by 김용환 '김용환'