1 Assignment 2 Css

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

1. What is CSS and its advantages?

2. What are the components of a CSS Style?


3. What is the cascading order in CSS?
4. What is the "box model" in CSS?
5. How do you control the visibility of an element in CSS?
6. Exemplify type selector, universal selector, Descendant Selector, class se-
lector,id selector, child selector, attribute selector?
7. What is the purpose of following measurement unit?
(a) %, cm, em, ex, in, mm, pc,pt, px,vh, vw, vmin
8. Which property is used to
(a) set the background color of an element?
(b) set the background image of an element?
(c) control the repetition of an image in the background?
(d) control the position of an image in the background?
(e) control the scrolling of an image in the background?
9. Which property is used to
(a) change the face of a font?
(b) make a font italic or oblique?
(c) create a small-caps eect?
(d) increase or decrease how bold or light a font appears?
(e) increase or decrease the size of a font?
(f) set the color of a text?
(g) set the text direction?
(h) add or subtract space between the letters that make up a word?
(i) add or subtract space between the words of a sentence?
(j) indent the text of a paragraph?
(k) align the text of a document?
(l) underline, overline, and strikethrough text?
(m) capitalize text or convert text to uppercase or lowercase letters?
(n) control the ow and formatting of text?
(o) set the text shadow around a text?
(p) set the width of an image border?

1
(q) set the height of an image?
(r) set the width of an image?
(s) set the opacity of an image?
10. Which property of a hyperlink signies
(a) unvisited hyperlinks and visited hyperlinks?
(b) an element that currently has the user's mouse pointer hovering over
it?
(c) an element on which the user is currently clicking?
11. Which property of a table
(a) species whether the browser should control the appearance of the
adjacent borders?
(b) species the width that should appear between table cells?
(c) species whether the border should be shown if a cell is empty?
(d) controls the placement of the table caption?
12. Which property species
(a) the color of a border?
(b) whether a border should be solid, dashed line, double line, or one of
the other possible values?
(c) the width of a border
(d) a shorthand property for setting the margin properties in one decla-
ration?
(e) the bottom margin of an element?
(f) the top margin of an element?
(g) the left margin of an element?
(h) the right margin of an element?
13. Which property species
(a) whether a long point that wraps to a second line should align with
the rst line or start underneath the start of the marker of a list?
(b) an image rather than a bullet point or number for the marker of a
list?
(c) the distance between a marker and the text in the list?
(d) the bottom padding of an element?
(e) the top padding of an element?
(f) the left padding of an element?

2
(g) the right padding of an element?
14. Which value of cursor property
(a) changes the cursor based on context area it is over?
(b) changes the cursor to a crosshair or plus sign?
(c) changes the cursor to an arrow?
(d) changes the cursor to a pointer?
(e) changes the cursor to the 'I' bar?
(f) changes the cursor to the an hour glass?
(g) changes the cursor to a question mark?
15. Which property is used to set
(a) the width of the outline?
(b) set the line style for the outline?
(c) set the color of the outline?
(d) set all the outlining properties in a single statement?
(e) set the height of a box?
(f) set the width of a box?

You might also like