Css miscellaneous


  1. Which of the following is the correct way to applying style to a document?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    Use an external style sheet, either by importing it or by linking to it


  1. What will be the output of below mentioned code snippet?
    h1 {color: "blue";}











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    nothings happen



  1. What will be the output of following code snippet?
    h1 {color: red text-decoration: underline; font-style: italic;}











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    In this case, we should see the browser continue to parse the value of color as “red textdecoration:
    underline” before it sees a closing semicolon. The font-style property that follows would then be used. Because the color property has an illegal value, it should be
    ignored.


  1. ___________ has a grammar but unlike traditional (X)HTML it is not defined with a document type definition.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    CSS 2.1 has a grammar (www.w3.org/TR/CSS21/grammar.html) but unlike traditional (X)HTML it is not defined with a document type definition. Instead the CSS specification is a combination of prose and a grammar that could be used to build a simple parser.



  1. ___________ describes CSS properties to manipulate the position of “ruby”, which are small annotations on top of or next to words, especially common in Chinese and Japanese.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    Ruby describes CSS properties to manipulate the position of “ruby”, which are small annotations on top of or next to words, especially common in Chinese and Japanese. They are often used to give the pronunciation or meaning of difficult ideograms.