In CSS the difference between two lines of your content is set by :
min-height property
line-height property
max-height property
none of these
Answer : B
Explain: line-height property is used to set the gap/differnce between two lines.
In style tag, when we add # before any element means :
class name
an universal tag
horizontal frame
an id tag
Answer : D
Explain: When we add # before any element it shows that it is id tag. Like <div id="hello">, In CSS- we use it #hello to add some property.
Following HTML tag is used to declare internal CSS :
style
link
script
body
Answer : A
Explain: style tag is used to declarre internal css. To link external CSS we use link tag to link it.
Function that allow calculation in CSS :
calc() function
calculator()
calculater()
calcu()
Answer : A
Explain: calc () is used to perform calculations.
The attribute used to change the background color of an element in CSS :
bgcolor
color-bg
bg-color
background - color
Answer : D
Explain: background-color property is used to change the color of background on a wep page.
Which of the following selector is used to select elements whose attribute value ends with a specified value.
[attribute="value"]
[attribute$="value"]
[$attribute="value"]
[attribute="value^"]
Answer : B
Explain: [attribute$="value"] - use for whose value end with and [attribute^="value"] - use for whose value start with it.
Function to insert values of a CSS variable is :
var()
rand()
varchar()
calc()
Answer : A
Explain: var () is used to insert variable value. It is begin with -- (double dashed).
A type of combinator in CSS is :
>
+
~
All of these
Answer : D
Explain: Four types of combinators of in CSS are adjacent sibling selector(+), General sibling selector(~), Child selector(>) and descendent selector(space).
The type of CSS popularly used for designing pages for websites :
Inline
External
Internal
None of these
Answer : D
Explain: Most of user perfer to use external css.
How to change the text sizes in CSS ?
font-family
font-size
font
Both (A) and (C)
Answer : B
Explain: font-size is used to adjust the size of text.
Which of the following is the correct CSS syntax ?
<h1 "color:Tomato;">...</h1>;
<h1 "color:Tomato;">...</h1>
<h1 style="color:Tomato;">...</h1>
<h1 style="color:Tomato;">...</h1>;
Answer :C
Which of the following is used to specify the transparency of an element is in CSS :
opacity
filter
visibility
vague
Answer : A
Explain: Opacity is used to specify the transparency of an element.
How to add shadow to text in CSS ?
Content Shadow
Text Shadow
Word Shadow
Text outline
Answer :B
Explain: Text shadow is used to add shadow to text in CSS.
In CSS which of the following are different types of gradients :
Linear
conic
Radial
All of these
Answer : D
Explain: Types of gradient use in CSS -Linear,conic and Radial.
The attribute used to make rounded corners around an element in CSS is :
border-radius
border-round
border-spacing
none of the above
Answer : A
Explain: To make round corner use border-radius.