You are on page 1of 2

AMA CLC COLLEGE-City of Tagbilaran WEBPD_IM41 Midterm Examination, 1st Sem., SY 2011-2012 Sarah L. Guiritan I.

Engr.

Identification. Part 1. CSS Properties Page Layout Properties 1. Sets the top margin of an element. 2. Sets the right margin of an element. 3. Sets the bottom margin of an element. 4. Sets the left margin of an element. 5. Sets the space between the top border and the content of an element. 6. Sets the space between the right border and the content of an element. 7. Sets the space between the bottom border and the content of an element. 8. Sets the space between the left border and the content of an element. Background Properties 9. Sets the foreground color for an element. 10.Sets the background color for an element. 11.Assigns the background image. 12.Determines whether the background image is repeated and if so, how it is repeated. 13.Determines if the background image remains stationary or scrolls with the document. 14.Sets the initial position of a background image. Border Properties 15.Sets the style of all four borders of an element. 16.Sets the color for all four borders of an element. 17.Sets the width of all four borders. Font Properties 18.Sets font face. 19.Sets the font size in absolute, relative or percentage terms. 20.Sets the font size as oblique, italic or normal. 21.Sets the font weight as normal, bold, bolder or lighter. 22.Sets the font to small-caps or normal. Text Alignment Properties 23.Sets the space to add to the default space between words. 24.Sets space to add to the default space between letters. 25.Sets the distance between two lines baseline. 26.Sets the vertical alignment for an element relative to the parent element, the line element is part of, or the line height of the line the element is contained in. 27.Sets the alignment of text within an element to left, center, right or justify. 28.Sets the font decoration as underline, overline and line-through. 29.Sets the indention of the first line of formatted text in an element. 30.Indicates how whitespace inside an element should be handled. Possible values are normal, pre and nowrap. Part II. Give what is asked. (5 points each) 1. Show how to insert an external style sheet named mystyle.css 2. Show how to insert an internal style sheet. 3. Show how to make an image named mypic.jpeg as a background in a HTML document. The image is located in the folder named images. Assume that the folder images and the CSS document are inside the same folder. II. Enumeration. (1 point each) 1.5. CSS background properties 6-7. Possible values of font-weight 8-10. Possible values of color property 11-12. Possible values of background-color property 13-14. Possible values of padding-right property. 15-16. Possible values of frame property 17-20. CSS font properties 21-23. CSS text alignment properties 24-25. Possible values of background-position property 26-29. Possible values of background-repeat property 30-31. Possible values of background-attachment property 32-33. Possible values of font-family property 34-35. Possible values of font-style property

36-37. Possible values of text-align property 38-40. Three ways to insert style sheet in an HTML document

You might also like