Write the difference between the class and id with example
Answers
Answered by
1
Answer:
the difference between an idea and an class is static and ID is used to identify a particular element where as a class is used as identify more than one
e example of class like toolbar, tag, comment ,warning message or email.
a example of I'd- when you have a single element on your page that will take the style.
Answered by
0
Answer:
Html for an element ID name starts with the “#” symbol followed by a unique name assigned to it. On the other hand class assigned to an element has its name starts with “.” followed by class name. Only one ID selector can be attached to an element. Multiple class selectors can be attached to an element.
Similar questions