Web Designing MCQs

MCQ Questions On CSS With Answer Set-2

Google+ Pinterest LinkedIn Tumblr
1. Which of the following are the background properties in CSS?

i) background-color ii) background-image iii) background-repeat

iv) background-position v) background

A) i, ii, iii and iv only

B) i, ii, iii and v only

C) i, ii, iv and v only

D) All i, ii, iii, iv and v

2. State whether the statement is/are True.

i) font-family property is used to change the face of a font.

ii) font-variant property is used to create small-caps effects.

A) i-True, ii-False

B) i-False, ii-True

C) i-True, ii-True

D) i-False, ii-False

3. The CSS links properties are

A) :link, :visited, :hover, :active

B) :link, :visit, :hover, :active

C) :link, :visited, :over, :active

D) :link, :visited, :hover, :active, :inactive

4. Internet Explorer uses ………………….. property to create transparent images.

A) -moz-opacity:x

B) filter: alpha(opacity=x)

C) Both of the above

D) None of the above

5. The different ways to associate styles with a HTML document is/are

A) Embedded CSS with <style> element

B) Inline CSS with style attribute.

C) External CSS with <link> element.

D) All of the above

6. Which of the following is correct CSS syntex for using font property?

A) <p style=”font: italic, bold, 15px;”> ……………. </p>

B) <p style=”font-style: italic font-weight: bold font-size: 15px;”> ………………. </p>

C) <p style=”font: italic bold 15px;”> ………………….. </p>

D) None of the above

7. State True of False for the CSS table properties.

i) The border-spacing specifies the width that should appear between table rows.

ii) The empty-cells specifies whether the border should be shown if a cell is empty.

A) i-True, ii-False

B) i-False, ii-True

C) i-True, ii-True

D) i-False, ii-False

8. In CSS tables, the possible values for the caption-side property can have the following values.

A) top, bottom, left or right

B) top, bottom, center, left or right

C) top or bottom

D) left or right

9. The ………………. property indicates whether a cell without any content should have a border displayed.

A) blank-cells

B) empty-cells

C) nocontent-cells

D) noborder-cells

10. The ………………… specifies whether a border should be solid, dashed line, doted line, double line, groove etc.

A) border-layout

B) border-decoration

C) border-style

D) border-weight


1.  D) All i, ii, iii, iv and v
2.  C) i-True, ii-True
3.  A) :link, :visited, :hover, :active
4.  B) filter: alpha(opacity=x)
5.  D) All of  the above
6.  C) <p style=”font: italic bold 15px;”> ………………….. </p>
7.  B) i-False, ii-True
8.  A) top, bottom, left or right
9   B) empty-cells

10. C) border-style

Read Next: Objective Questions of CSS With Answer Set-3

Shuseel Baral is a web programmer and the founder of InfoTechSite has over 7 years of experience in software development, internet, SEO, blogging and marketing digital products and services is passionate about exceeding your expectations.

Write A Comment