Q:
What is the difference between class selector and ID selector?
Answer
- Class selector can be given to an overall block. This is sometimes termed as block element as well, whereas ID selector identifies a unique name and a style for a specific element.
- ID selector declares the style for only one particular element which can be differentiated from other element, whereas Class selector is being given for the whole complete block.
View answer
Workspace
Report Error
Discuss