COMPUTER SCIENCE AND ENGINEERING
WEB TECHNOLOGY
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
comma,
|
|
semi-colon ;
|
|
colon:
|
|
None of the above
|
Detailed explanation-1: -Each declaration includes a CSS property name and a value, separated by a colon. Multiple CSS declarations are separated with semicolons, and declaration blocks are surrounded by curly braces.
Detailed explanation-2: -The declaration block contains one or more declarations separated by semicolons. Each declaration includes a CSS property name and a value, separated by a colon. A CSS declaration always ends with a semicolon, and declaration blocks are surrounded by curly braces.
Detailed explanation-3: -CSS declaration blocks Blocks sometimes can be nested, so opening and closing braces must be matched. Such blocks are naturally called declaration blocks and declarations inside them are separated by a semicolon, ‘; ‘ ( U+003B SEMICOLON ).
Detailed explanation-4: -There is no limit to the number of declarations you can have in a single CSS rule or selectors you can have assigned to a single declaration block.
Detailed explanation-5: -A CSS rule consists of two main parts: selector (’h1’) and declaration (’color: red’). In HTML, element names are case-insensitive so ‘h1’ works just as well as ‘H1’. The declaration has two parts: property name (’color’) and property value (’red’).