COMPUTER NETWORKS AND COMMUNICATIONS
INTERNET AND WEB TECHNOLOGIES
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
p
|
|
color
|
|
red
|
|
None of the above
|
Detailed explanation-1: -Expert-Verified Answer. Out of the all given CSS syntax the correct one is pcolor:black; (Option 2). CSS selectors are used to “find” (or choose) the HTML elements to style. In CSS, the selector p refers to the HTML element you want to style: <p>.
Detailed explanation-2: -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-3: -A CSS rule set contains one or more selectors and one or more declarations. The selector(s), which in this example is h1, points to an HTML element. The declaration(s), which in this example are color: blue and text-align: center style the element with a property and value.