Knowledge check: Debugging

Knowledge check: Debugging

  1. In a CSS selector such as 'div .alpha>p', what will be the element or class that will be read first by the CSS compiler?

    • p

    • .alpha

    • div

    • the entire selector is read and interpreted

  2. What is the default behavior of CSS when it encounters an incomplete rule with missing values?

    • It will set default values for the property and continue compilation

    • It will stop further compilation altogether after reporting the error

    • It will stop further compilation altogether without reporting the error

    • It will ignore the specific property-value pair and continue compilation

  3. A styling issue is occurring with an element on your web page. You can skip the missing delimiter for the last property but it is not a good practice.

    • True

    • False

  4. Which of the following are ideal coding practices to reduce errors in CSS? Choose all that apply.

    • Overspecificity

    • Universal selectors

    • Shorthand properties

  5. Modernizer, reset.css and normalize.css are types of:

    • CSS libraries for live previews

    • CSS linters

    • CSS validators

    • CSS libraries for help in browser compatibility

  6. Which of the following types is the stylesheet created by the browser to render CSS?

    User stylesheet

    Syntactically Awesome stylesheet

    Author stylesheet

    User-agent stylesheet