1.

ID selector name is preceded by __________(a) ‘.’(b) ‘%’(c) ‘#’(d) ‘@’The question was posed to me in unit test.The origin of the question is Specifying Bullet Point Styles, CSS Image Alignment, ID and Class in portion Layout & Images of CSS

Answer»

The correct choice is (c) ‘#’

To explain I would say: In CSS CLASS SELECTOR name is PRECEDED by a full stop (‘.’) and ID selector name is preceded by hash CHARACTER (‘#’).



Discussion

No Comment Found

Related InterviewSolutions