Interview Questions

Which characters can CSS-names contain?

CSS Interview Questions and Questions


(Continued from previous question...)

73. Which characters can CSS-names contain?

The CSS-names; names of selectors, classes and IDs can contain characters a-z, A-Z, digits 0-9, period, hyphen, escaped characters, Unicode characters 161-255, as well as any Unicode character as a numeric code. The names cannot start with a dash or a digit. (Note: in HTML the value of the CLASS attribute can contain more characters).

(Continued on next question...)

Other Interview Questions