CSS Exam Questions With Correct Answers
Which |of |the |following |is |NOT |a |valid |pseudo-class? |- |CORRECT |ANSWER✔✔-:test
What |is |the |right |way |to |select |every |4th |paragraph? |- |CORRECT |ANSWER✔✔-p:nth-of-
type(4n)
Which |of |the |following |are |true |about |Flexible |Box? |- |CORRECT |ANSWER✔✔-2. |Flexbox |
consists |of |flex |containers |and |flex |items.
1. |Inside |a |flex |container |there |is |one |or |more |flex |items.
Which |of |the |following |are |valid |multi-column |properties? |- |CORRECT |ANSWER✔✔-ALL |OF |
THESE |ARE |CORRECT
1. |Column-count
2. |Column-gap
3. |Column-rule-style
4. |Column-rule-width
Which |of |the |following |is |NOT |a |valid |media |type |for |media |query? |- |CORRECT |ANSWER✔✔-
small
Which |of |the |following |are |valid |selectors? |- |CORRECT |ANSWER✔✔-3. |a[href^="https"]
2. |p: |last-of-type
1. |p:empty
, The |___ |property |indicates |whether |a |cell |without |any |content |should |have |a |border |
displayed. |- |CORRECT |ANSWER✔✔-empty-cells
Which |of |the |following |is |multi-column |properties? |- |CORRECT |ANSWER✔✔-3. |column-rule
2. |column-width
1. |column-span
Which |of |the |following |is |NOT |a |valid |feature |supported |in |meda |query? |- |CORRECT |
ANSWER✔✔-Backround-color
Why |isn't |it |possible |to |unite |webkit-border |radius |and |-moz-border-radius? |- |CORRECT |
ANSWER✔✔--webkit- |and |-moz- |are |vendor-specific |prefixes |and |are |not |standard |CSS3 |
properties.
you |can |set |border-box |for |all |Elements |using |the |following |code? |- |CORRECT |ANSWER✔✔-* |{
-webkit-box-sizing: |border-border |box;
-moz-box-sizing; |border-box;
box-sizing: |border-box;
}
Which |of |the |statements |are |true? |- |CORRECT |ANSWER✔✔-2. |A |block-level |element |always |
starts |on |a |new |line |and |takes |up |the |full |width |available.
1. |An |in-line |element |does |not |start |on |a |new |line |and |only |takes |up |as |much |width |as |
necessary.
Screen |REsolution |refers |to |the |number |of |dots |a |screen |shows |per? |- |CORRECT |ANSWER✔✔-
inch
Which |of |the |following |is |NOT |a |valid |pseudo-class? |- |CORRECT |ANSWER✔✔-:test
What |is |the |right |way |to |select |every |4th |paragraph? |- |CORRECT |ANSWER✔✔-p:nth-of-
type(4n)
Which |of |the |following |are |true |about |Flexible |Box? |- |CORRECT |ANSWER✔✔-2. |Flexbox |
consists |of |flex |containers |and |flex |items.
1. |Inside |a |flex |container |there |is |one |or |more |flex |items.
Which |of |the |following |are |valid |multi-column |properties? |- |CORRECT |ANSWER✔✔-ALL |OF |
THESE |ARE |CORRECT
1. |Column-count
2. |Column-gap
3. |Column-rule-style
4. |Column-rule-width
Which |of |the |following |is |NOT |a |valid |media |type |for |media |query? |- |CORRECT |ANSWER✔✔-
small
Which |of |the |following |are |valid |selectors? |- |CORRECT |ANSWER✔✔-3. |a[href^="https"]
2. |p: |last-of-type
1. |p:empty
, The |___ |property |indicates |whether |a |cell |without |any |content |should |have |a |border |
displayed. |- |CORRECT |ANSWER✔✔-empty-cells
Which |of |the |following |is |multi-column |properties? |- |CORRECT |ANSWER✔✔-3. |column-rule
2. |column-width
1. |column-span
Which |of |the |following |is |NOT |a |valid |feature |supported |in |meda |query? |- |CORRECT |
ANSWER✔✔-Backround-color
Why |isn't |it |possible |to |unite |webkit-border |radius |and |-moz-border-radius? |- |CORRECT |
ANSWER✔✔--webkit- |and |-moz- |are |vendor-specific |prefixes |and |are |not |standard |CSS3 |
properties.
you |can |set |border-box |for |all |Elements |using |the |following |code? |- |CORRECT |ANSWER✔✔-* |{
-webkit-box-sizing: |border-border |box;
-moz-box-sizing; |border-box;
box-sizing: |border-box;
}
Which |of |the |statements |are |true? |- |CORRECT |ANSWER✔✔-2. |A |block-level |element |always |
starts |on |a |new |line |and |takes |up |the |full |width |available.
1. |An |in-line |element |does |not |start |on |a |new |line |and |only |takes |up |as |much |width |as |
necessary.
Screen |REsolution |refers |to |the |number |of |dots |a |screen |shows |per? |- |CORRECT |ANSWER✔✔-
inch