HTML
Can i attach more than one declaration to a selector?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Harsh ShahPosted Mar 2, 2020, 10:26 PM
Mageshwaran RPosted Nov 12, 2019, 8:38 AM
Priya LingePosted Jan 4, 2012, 1:58 AM
1.Yes, We can attach more than one declaration to a selector.
2.we can attached More than one declaration to a selector by using semi colon .
3.Example :
P {background: white; color: black}
Thanks.
Satyapriya NayakPosted Jan 4, 2012, 1:24 AM
Yes. You must add a semi colon if more than one declaration to a selector.
Selector {declaration1; declaration2}
P {background: white; color: red}
Thanks