Interview Questions

Can I attach more than one declaration to a selector?

CSS Interview Questions and Questions


(Continued from previous question...)

87. Can I attach more than one declaration to a selector?

Yes. If more than one declaration is attached to a selector they must appear in a semi colon separated list, e.g.;

Selector {declaration1; declaration2}
P {background: white; color: black}

(Continued on next question...)

Other Interview Questions