Loading, please wait ...
Open its course - Web Engineering

Intro to Cascading Style Sheets (CSS)

  • CSS Introduction
  • CSS Selectors
  • Ways to Insert CSS
  • Multiple Style Sheets
  • Inheritance in...
    View Complete Description
    ×

    Topic Summary

    • CSS Introduction
    • CSS Selectors
    • Ways to Insert CSS
    • Multiple Style Sheets
    • Inheritance in CSS
    • Advantages of External CSS Style Sheets
    • CSS Properties Summary
    • Controlling Text
    • Text Formatting
Topic Questions:
72
MCQs T/F FiB SQ
28 19 19 6
Question Type Legends

Easy

Medium

Difficult
Open its course - Web Engineering

Multiple Choice Questions for Intro to Cascading Style Sheets (CSS)

  • ×

    Hidden Questions!

    Some MCQs are not visible. Usually teachers hides their visibility if they are few in number. Subject Expert recommends them to have more than 70+ questions against the topic and make them public.

  • 1 Which CSS property will tell the browser to not omit/skip the spaces and new lines specified between the text in the source code of HTML page.
    1. < pre > text here < /pre >
    2. space:pre;
    3. white-space:pre;
    4. omit-space:pre;

  • 2 Which of the following will set 5px space between the words of the paragraph?
    1. p {text-spacing:5px;}
    2. p {word-spacing:5px;}
    3. p {letter-spacing:5px;}
    4. word-spacing:5px;

  • 3 To display the first letter of each word capitalized, we use:
    1. text-transform: uppercase;
    2. text-transform: capitalize;
    3. text-decoration: capitalize;
    4. text-transform: CamelNotation;

  • 4 Which of following is correct css class for a green shadow on the text of a paragraph.
    1. p.shadow{ text-shadow: green 5px 5px 3px;}
    2. shadow.p{shadow-text: green 5px 5px 3px;}
    3. text-shadow: green 5px 5px;
    4. text-shadow: green 5px 5px 3px;

  • 5 To draw a line on the text of a paragraph, we apply text-decoration = _____, on the paragraph.
    1. line-through
    2. cross-through
    3. line-middle
    4. underline

  • 6 To change the color of a specific word in a line, apply the css class on _____ tag that should contains that word.
    1. div
    2. span
    3. p
    4. table

  • 7 When style is applied to many pages, then which way would you use for applying the styles:
    1. Inline Styles
    2. Internal Style Sheet
    3. External Style Sheet
    4. None

  • 8 To match any < p > element carrying an attribute called id, its existence selector would be
    1. p[id]
    2. id[p]
    3. p < id >
    4. id < p >

  • 9 h1~p {} is the example of _____ selector.
    1. adjacent
    2. adjacent sibling
    3. general sibling
    4. Chile selector

  • 10 Which of the following character is used for child selector?
    1. >
    2. ,
    3. .
    4. #

  • 11 Which attribute is used to apply the element selector in CSS
    1. id
    2. class
    3. style
    4. None

  • 12 *{ color:gree; } is an example of
    1. Group Selector
    2. Universal Selector
    3. Class selector
    4. adjacent sibling selector

  • 13 Which of the following are used to "find" (or select) HTML elements based on their id, class, type, attribute, and more.
    1. CSS selectors
    2. CSS Rules
    3. CSS Declaration
    4. CSS Properties

  • 14 CSS declaration always ends with a _____, and declaration groups are surrounded by curly braces.
    1. :
    2. ;
    3. ,
    4. Not mandatory

  • 15 Which of the following are the parts of the declaration in css rule.
    1. selector
    2. rule
    3. Property
    4. Value
    5. Both C & D
    6. None

  • 16 CSS allows to specify _____ that say how the content of elements within your document should appear.
    1. HTML Tags
    2. HTML Elements
    3. Rules
    4. Values

  • 17 Which styles are most officiant way to apply style to website?
    1. external styles
    2. embedded styles
    3. inline styles
    4. all of above

  • 18 CSS allow us to:
    1. format a document
    2. structure a document
    3. scripting a document
    4. all of above

  • 19 CSS rule made up of two parts
    1. Tag and Style
    2. Property and Value
    3. The selector and declaration
    4. Height and Width

  • 20 Which CSS style has highest priority?
    1. Browser default
    2. Inline style
    3. Internal style sheet
    4. External style sheet

Contact Us

support@subexpert.com
Write to Us View Help
Subject Expert Logo

Subject Expert

Learn, Evaluate and Optimize

Follow Us
Facebook Switch Display Mode Enable Translation
© 2024 - Subject Expert