CSS Multiple choices


Total available count: 25
Subject - Web Development
Subsubject - CSS

Which CSS property controls the text size?


 

 

 

 



B


Solution:-

CSS font-size Property Definition and Usage:-
Using CSS the size of the font sets by the font-size property.

CSS Syntax for font-size is as follows,

font-size: medium | xx-small | x-small | small | large | x-large | xx-large | smaller | larger | length | initial | inherit;

Example:-

Set the font size for different elements,

div.a { font-size: 15px; }
div.b { font-size: large; }
div.c { font-size: 150%; }

 




Next 5 multiple choice(s)

1

Which CSS property is used to change the text color of an element?

2

How do you add a background color for all <h1> elements?

3

Which property is used to change the background color?

4

How do you insert a comment in a CSS file?

5

Which is the correct CSS syntax?

Comments