FUNDAMENTALS OF COMPUTER

WEB BROWSERS TECHNOLOGY

WHAT IS WEB TECHNOLOGY

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which CSS code is incorrect?
A
a {color:blue;}
B
p {font-size:10px;}
C
body {background-color="red";}
D
img {width:100%;}
Explanation: 

Detailed explanation-1: -Background-color values can be expressed in hexadecimal values such as #FFFFFF, #000000, and #FF0000. Background-color values can be expressed using rgb such as rgb(255, 255, 255), rgb(0, 0, 0), and rgb(255, 0, 0). Background-color values can be expressed as named colors such as white, black, and red.

Detailed explanation-2: -With CSS, a color is most often specified by: a valid color name-like “red” a HEX value-like “#ff0000” an RGB value-like “rgb(255, 0, 0)"

Detailed explanation-3: -Expert-Verified Answer Out of the all given CSS syntax the correct one is pcolor:black; (Option 2).

Detailed explanation-4: -The correct answer to this question “What is the correct HTML for adding a background color” is option (b). <body bgcolor = “green”>. This is the correct HTML command that is used for adding a background color of choice.

There is 1 question to complete.