MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

WEB TECHNOLOGY

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which is correct CSS syntax?
A
{ body; color=black;}
B
body:color= black
C
body {color:black;}
D
(body color is black)
Explanation: 

Detailed explanation-1: -The selector points to the HTML element you want to style. 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.

Detailed explanation-2: -Syntax. The font property may be specified as either a single keyword, which will select a system font, or as a shorthand for various font-related properties. If font is specified as a system keyword, it must be one of: caption, icon, menu, message-box, small-caption, status-bar .

There is 1 question to complete.