NYCPHP Meetup

NYPHP.org

[nycphp-talk] OT: webmaster test

Ken Robinson kenrbnsn at rbnsn.com
Mon Apr 14 16:24:15 EDT 2008


Quoting Allen Shaw <ashaw at polymerdb.org>:

> André Pitanga wrote:
>> 4) Which is the correct CSS syntax?
>>      a) body {color: black}
>>      b) body:color=black
>>      c) {body:color=black}
>>      d) {body color:black}
>>
> Doesn't correct CSS syntax require a semicolon?
> body {color: black;}

CSS only requires the semi-colon when there is more than one statement  
in the block.

This is ok:
body {
    color: black
}

This is not ok:
body {
    color: black
    background-color: white;
}

Ken




More information about the talk mailing list