SyntaxFix
Write A Post
Hire A Developer
Questions
The class attribute can be used with multiple HTML elements/tags and all will take the effect. Where as the id is meant for a single element/tag and is considered unique.
class
id
Moreoever the id has a higher specificity value than the class.