Home / CSE / CSS - CS :: Basic CSS

CSE :: CSS - CS

  1. Which of the following Protocol enables a hyperlink to access a file on the local file system?

  2. A.

     https

    B.

     ftp

    C.

     file

    D.

     telnet


  3. Which of the following attribute specifies the URL of the linked resource?

  4. A.

     src

    B.

     link

    C.

     rel

    D.

     href


  5. Which of the following color has this value #ff0000?

  6. A.

     blue

    B.

     green

    C.

     red

    D.

     yellow


  7. Which of the following is correct about CSS?

  8. A.

     CSS is used to control the style of a web document in a simple and easy way.

    B.

     CSS is the acronym for "Cascading Style Sheet".

    C.

     You can write CSS once and then reuse same sheet in multiple HTML pages

    D.

     All of the above


  9. Which of the following is a component of CSS style rule?

  10. A.

     Selector

    B.

     Property

    C.

     Value

    D.

     All of the above


  11. Which of the following selector matches all elements of a type?

  12. A.

     The Type Selector

    B.

     The Universal Selector

    C.

     The Descendant Selector

    D.

     The Class Selector


  13. Which of the following selector matches a particular element only when it lies inside a particular element?

  14. A.

     The Type Selector

    B.

     The Universal Selector

    C.

     The Descendant Selector

    D.

     The Class Selector


  15. Which of the following selector selects all paragraph elements with a lang attribute?

  16. A.

     p[lang]

    B.

     p[lang="fr"]

    C.

     p[lang~="fr"]

    D.

     p[lang|="fr"]


  17. Which of the following defines a measurement as a percentage relative to another value, typically an enclosing element?

  18. A.

     %

    B.

     cm

    C.

     em

    D.

     ex


  19. Which of the following defines 1% of viewport height?

  20. A.

     px

    B.

     vh

    C.

     vw

    D.

     vmin