CSS Quizs Question & Answers – Style Inclusion Methods

Q 1. Which of the following property sets the font size of text?
A. text-size
B. font-size
C. size
D. text

Show Answer Answer:-B. font-size
Explanation Syntax:font-size: length | percentage | larger | smaller | xx-small | x-small | small | medium | large | x-large | xx-larger | inherit

Q 2. Which of the following property sets a variation of the specified or default font family?
A. height
B. font-weight
C. default
D. font-variant

Show Answer Answer:-D. font-variant
Explanation Syntax:font-variant: normal | small-caps | inherit The small-caps value sets text in smaller-size all capitals. The normal value would be used to override any inherited font-variant value. Font-weight is for increasing/decreasing weight of font. It takes values like normal, bold, lighter, and bolder.

Q 3. Which of the following property defines labels for a list of items?
A. list-style-type
B. list-style-image
C. list-style
D. list

Show Answer Answer:-A. list-style-type
Explanation Syntax:list-style-type: disc | circle | square | decimal | decimal-leading-zero list-style-image add graphical image to a list item. List-style sets all the properties for a list.

Q 4. Which of the following property assigns a graphic image to a list item?
A. list-style-type
B. list-style-image
C. list-style
D. list

Show Answer Answer:-B. list-style-image
Explanation list-style-type defines labels for a list of item. List-style property set all the properties for a list. List-style-image assign image to a list item. Syntax:list-style-image: url(url of image) | none

Q 5. Which of the following property sets the amount of spacing between letters?
A. space
B. line-height
C. letter-spacing
D. letter-space

Show Answer Answer:-C. letter-spacing
Explanation letter-spacing property sets the amount of spacing between letters. Syntax:letter-spacing: length | normal | inherit Length values can be set in various units (negative values are permitted) or to the default value normal.

Q 6. Which of the following measurement defines a measurement relative to a font’s x-height?
A. ex
B. em
C. pt
D. px

Show Answer Answer:-A. ex
Explanation Defines a measurement relative to the height of a font in em spaces. Because an em unit is equivalent to the size of a given font, if you assign a font to 12pt, each em unit would be 12pt, thus 2em would be 24pt.

Q 7. Which of the following measurement defines measurement as a percentage?
A. %
B. cm
C. em
D. in

Show Answer Answer:-A. %
Explanation Defines a measurement as a percentage. Percentages are denoted by a number followed by the % symbol and are always relative to another value such as length. Quite often they are used to specify some value relative to an inherited value from a parent element.

Q 8. Which of the following tag is used to linked information should be placed inside?
A. <head>
B. <html>
C. <div>
D. <body>

Show Answer Answer:-A.
Explanation Linked information regarding CSS like external CSS document information is always placed in tag. tag contains the body of the document.

Q 9. Which of the following tag can be used to embed a Document-wide styles in a document’s head element?
A. <head>
B. <style>
C. <script>
D. <html>

Show Answer Answer:-B.