Listed below are a few CSS questions for discussing CSS in an interview setting. Each answer should be a short sentence and be answerable over the phone. The question format is more to spur conversation rather than to define merit.
What is difference between the CSS property values inherit
and initial
? What is an example of when this is signicant?
the value
inherit
takes the value of it's parent the valueinitial
takes the browsers initial value of that html elementinherit
could be used for links (<a>
) within a title element (<h1—6>
) to inherit colors, etcinitial
could be used to override a normalized style for optimal browser specific css.