NYCPHP Meetup

NYPHP.org

[nycphp-talk] OT: webmaster test

André Pitanga andre at pitanga.org
Mon Apr 14 15:56:58 EDT 2008


Hey Allen Shaw,
> 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;}
>
> - Allen
>

According to http://www.w3.org/TR/CSS21/syndata.html  you are right.

It states that "A declaration block starts with a left curly brace ({) 
and ends with the matching right curly brace (}). In between there must 
be a list of zero or more semicolon-separated (;) declarations."

But...




More information about the talk mailing list