MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

WEB TECHNOLOGY

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Select the rule set to make all the text in your web page blue and centered.
A
p { color:blue;}
B
body { text-align:left; color:blue;}
C
p { text-align:center; color:blue;}
D
body { text-align:center; color:blue;}
Explanation: 

Detailed explanation-1: -You can change the color and size of your text right inside its tag with the color and font-size properties. This is known as inline CSS. You do it with the style attribute in HTML.

Detailed explanation-2: -To change font type purely with HTML, use the CSS font-family property. Set it to the value you want and place it inside a style attribute. Then add this style attribute to an HTML element, like a paragraph, heading, button, or span tag.

Detailed explanation-3: -In HTML, you can change the size of text with the <font> tag using the size attribute. The size attribute specifies how large a font will be displayed in either relative or absolute terms. Close the <font> tag with </font> to return to a normal text size.

Detailed explanation-4: -The font-size CSS property sets the size of the font.

There is 1 question to complete.