Home » Interview » Technology

What is the difference between class selector and ID selector?

Correct 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

← Previous Question Next Question→

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion