0% found this document useful (0 votes)
154 views6 pages

CH 3 CASCADING STYLE SHEET - MCQ - Eng

The document contains a chapter on cascading style sheets (CSS) with multiple choice questions, true/false statements, and exercises to match terms. CSS is used to control the presentation and layout of HTML documents and allows setting properties like colors, backgrounds, borders, text formatting and positioning of elements.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
154 views6 pages

CH 3 CASCADING STYLE SHEET - MCQ - Eng

The document contains a chapter on cascading style sheets (CSS) with multiple choice questions, true/false statements, and exercises to match terms. CSS is used to control the presentation and layout of HTML documents and allows setting properties like colors, backgrounds, borders, text formatting and positioning of elements.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Chapter-3 Cascading Style Sheet

A. Multiple Choice Questions.


1. CSS is a_________ language
language.
a. Structural b. Presentational
c. Markup d. Behavioral

2. Name a syntax of declaring a CSS rule is:


a. property-name = value;
b. property-name : value
c. property-name = value
d. property-name:value

3. Styles that are placed within style tag are called as:
a. External styles b. Inline styles
c. Embedded styles d. Html styles

4. Which tag is used to link an external style sheet to a webpage?


a. Link tag b. Style tag
c. Script tag d. @media

5. Which symbol indicates class selector in CSS.


a. Hash b. Plus
c. Dot d. None

6. To select tag by their id attribute value which selector is used:


a. Class selector b. ID selector
c. Tag selector d. Sibling selector

7. Which of the following selector selects the element that is targeted in the
URL?
a. :selected b. :link
c. :target d. :enabled

Jawahar Computer Education® Head Office


Office-873/1, Sec-I,
I, Aashiyana, Near Sai Temple, Lucknow.
8. What this code will happen:
<p style=”color:blue”>text</p>
a. To make the specific paragraph blue
b. Error
c. nothing happen
d. None of the above
9. Which of the following CSS list properties is/are correct?
a. set different list item markers for ordered list
b. set different list item markers for unordered list
c. set an image as the list item marker
d. All of the mentioned

10. Which of the following selector selects the element that is the first child of
its parents that is its type?
a. :first-of-type b. :last-child
c. ::first-line d. ::first-letter

11. If we do not want to allow a floating div to the left side of an element,
which css property will you use?
a. Margin b. Clear
c. Float d. Padding

12. Which selector is being used to specify a group of elements


a. Name b. ID
c. Class d. Tag

13. Which property is used in CSS to change the background color?


a. bgcolor b. background-color
c. color d. back-color

14. Which of the following selector matches a element based on its id?
a. The universal selector b. The descendant selector
c. The class selector d. The id selector

15. Which of the following properties will use to display border around cell
without any content?
a. Empty-cell b. Blank-cell
c. Noncontent-cell d. no-cell

Jawahar Computer Education® Head Office-873/1, Sec-I, Aashiyana, Near Sai Temple, Lucknow.
B. State whether the following statements are True or False.

1. Inline element has no line break and you cannot set height and width of the
element.

2. Bo-sizing allows you to include the padding and border in element total
width and height.

3. Linking to an external style sheet allows you to have hyperlinks from your
page to the World Wide Web.

4. The link element should be placed at the top of the body section.

5. Specifying an element’s position as absolute remove it from the normal flow


of elements on the page.

6. <a href=mailto:sales124@gmail.com> is the correct e-mail link.

7. Relative positioning removes element from the general flow of elements on


the page.

8. You can used absolute lengths to specify the height and width of an element.

9. The box model applies to the spa elements.

10. You can write the CSS code once and then you can reuse same sheet in
multiple HTML pages.

Jawahar Computer Education® Head Office-873/1, Sec-I, Aashiyana, Near Sai Temple, Lucknow.
C. Match the following:

1. The default value of “position” a. Body {color:black}


attribute is
2. CSS b. The property sets the shadow
for a box element
3. Syntax of background color c. Static
4. When we write <img d. It defines the different
src=”img.ping”>, what properties of all four sides of an
“img.ping” Inside double quote element’s border in a single
implies declaration.
5. Box-shadow e. #id
6. Background-attachment f. P strong {background-
color:yellow;}
7. Border-width g. value
8. P{line-height:150%;} is type of h. Cascading Style Sheets
selector
9. _________ selectors selects any tag i. Element selectors
with an id attribute set
10. Strong element within a p j. It sets the background image to
element have a yellow scroll or not to scroll with its
backgound associated element’s content
k. {body;color:black}

Jawahar Computer Education® Head Office-873/1, Sec-I, Aashiyana, Near Sai Temple, Lucknow.
D. Fill in the blanks.

a. CSS b. c. margin d. a {text- E. Absolute f. class


background- decoration:none;}
attachment
g. Float-align H. list-style- i. border- j. Display k. float-left
image collapse

1. __________ property that is used for controlling image-scroll.


2. The__________ attribute is used to define the name (s) of the class (es) to which
a particular tag belongs.
3. ___________ property sets a consistent margin on all four sides of the affected
elements.
4. By default, hyperlinks are displayed with an underline.__________ you remove
the underline from all hyperlinks by using CSS code .
5. __________ has introduced text, list, box, margin, border, color and background
properties.
6. __________ property assigns a graphic image to a list item.
7. If the element has position as __________ that will place the element depend
upon its nearest parents elements.
8. __________ property influences the horizontal alignment of an element,
making it “float” toward the left or right margin of its containing element.
9. Which __________ CSS property is used for controlling the layout.
10. _________ CSS property that can be used for collapsing the borders between
table cells.

Answers

1. b 2. d 3. c 4. a 5. c
A
6. b 7. c 8. a 9. d 10.a
11.b 12.c 13.b 14.d 15.a
1. T 2. T 3. F 4. F 5. T
B
6. T 7. F 8. F 9. F 10.T
1. c 2. h 3. a 4. g 5. b
C
6. j 7. d 8. i 9. e 10.f
1. b 2. f 3. c 4. d 5. a
D
6. h 7. e 8. g 9. j 10.i

Jawahar Computer Education® Head Office-873/1, Sec-I, Aashiyana, Near Sai Temple, Lucknow.
Jawahar Computer Education® Head Office-873/1, Sec-I, Aashiyana, Near Sai Temple, Lucknow.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy