MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

WEB TECHNOLOGY

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
sets the color of words in a paragraph
A
h1 {color:pink;}
B
img {color:pink;}
C
body {color:pink;}
D
p {color:pink;}
Explanation: 

Detailed explanation-1: -We use the style attribute to set the font color in HTML. The style attribute specifies an inline style for an element, with the CSS property color. The attribute is used with the HTML <p> tag, with the CSS property color.

Detailed explanation-2: -Text Color The color property is used to set the color of the text. The color is specified by: a color name-like “red” a HEX value-like “#ff0000"

Detailed explanation-3: -<FONT COLOR= > To change the color of the font to red add the following attribute to the code to the <FONT COLOR=” “> tag. #ff0000 is the color code for red.

Detailed explanation-4: -Select the text that you want to change. On the Home tab, in the Font group, choose the arrow next to Font Color, and then select a color. You can also use the formatting options on the Mini toolbar to quickly format text.

There is 1 question to complete.