Single Choice Question

  1. The unit can not be used to measure the font size is
    1. em
    2. pt
    3. px
    4. %
  2. To make every text line has equal width, and the left and right margins are straight, we need use
    1. text-align:middle
    2. text-align:justify
    3. text-align:center
    4. text-align:both
  3. The CSS property to specify the foreground color of text is
    1. color
    2. background-color
    3. foreground-color
    4. text-color
  4. The HTML tag "ins" can be replaced by
    1. text-decoration: line-through;
    2. text-decoration: underline;
    3. text-decoration: overline;
    4. text-decoration: none;
  5. The HTML tag "del" can be replaced by
    1. text-decoration: line-through;
    2. text-decoration: underline;
    3. text-decoration: overline;
    4. text-decoration: none;
  6. The CSS style which is used to set the indentation by 1em is
    1. text-indent: 1em;
    2. text-indention: 1em;
    3. indent: 1em;
    4. indention: 1em;
  7. The CSS style which is used to specify additional spacing between the words is
    1. letter-spacing
    2. word-spacing
    3. letter-margin
    4. word-padding
  8. The CSS style used to specify the font to be used to render the text is
    1. font-family
    2. font-style
    3. font-weight
    4. font-size
  9. To make the text bold, we need use
    1. font-weight:bold
    2. font-weight:bolder
    3. font-weight:boldest
    4. font-weight:boldest
  10. To make first letter of each word be in uppercase, we need use
    1. text-transform:uppercase
    2. text-transform:lowercase
    3. text-transform:capitalize
    4. text-transform:none
  11. To replace the <i> tag, we may use
    1. font-style:italic
    2. font-style:oblique
    3. font-style:italic-oblique
    4. font-style:none
  12. To replace the <b> tag, we may use
    1. font-style:bold
    2. font-style:oblique
    3. font-style:italic-oblique
    4. font-style:italic
  13. About using font family, which statement is the correct one?
    1. font-family: "Times New Roman", serif;
    2. font-family: Times New Roman;
    3. font-family: serif, "Times New Roman";
    4. font-family: serif, Times New Roman
  14. To achieve the same visual effect of the HTML tag <strong>, we may use the CSS property
    1. font-weight: bold
    2. font-style: bold
    3. font-weight: strong
    4. font-style: strong
  15. To remove the underline of hyperlink, we may use the CSS style
    1. text-decoration: remove
    2. text-decoration: none
    3. text-decoration: invisible
    4. text-decoration: hidden
  16. To change the space between the letters of a word, we may use the CSS style
    1. word-spacing
    2. letter-spacing
    3. margin
    4. padding
  17. To change the space between lines of a paragraph, we may use the CSS style
    1. word-spacing
    2. letter-spacing
    3. line-height
    4. margin

True or False Question

  1. When text-align is set to center, each line is stretched so that every line has equal width (except the last line), and the left and right margins are straight.
  2. The text-indention property is used to set or remove decorations from text.
  3. The word-spacing property is used to set extra spacing between the characters of text.
  4. The text-decoration property is extensively used to remove the default underline from the HTML hyperlinks.
  5. If the name of a font family contains more than one word, it must be placed inside quotation marks.
  6. In CSS style "font-family: font1,font2....serif", font1 has the highest priority.