wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

ADV CSS Quiz 3

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

By default, the width and height of an element is calculated like this:

a)

width + border = actual width of an element

height + border = actual height of an element

b)

width = actual width of an element

height = actual height of an element

c)

width + padding + border = actual width of an element

height + padding + border = actual height of an element

d)

width + margin + border = actual width of an element

height + margin + border = actual height of an element

2.

The CSS box-sizing property allows us to include the padding and border in an element's total width and height.

a)

True

b)

False

3.

If you set box-sizing: border-box; on an element, padding and border are included in the width and height.

a)

True

b)

False

4.

The @media rule, first introduced in CSS3, made it possible to define different style rules for different media types.

a)

True

b)

False

5.

Fortunately media types got a lot of support by devices, except for the print media type.

a)

True

b)

False

6.

Media queries in CSS3 extended the CSS2 media types idea: Instead of looking for a type of device, they look at the capability of the device.

a)

True

b)

False

7.
Using CSS you can change the size of HTML headings.
a)
True
b)
False
8.

There are many free CSS Frameworks that offer Responsive Design, which one is fake?

a)

W3.CSS

b)

Bootstrap

c)

Semantic UI, Bulma, Materialize

d)

LeatherWorx

9.

You can't also use media queries to change the font size of an element on different screen sizes.

a)

True

b)

False

10.

Which of these @media rules sets a break point to set the font size to 30px at a max 600px?

a)

@media only screen and (min-width: 601px) {  div.example {    font-size: 80px;}}

b)

@media only screen and (max-width: 600px) {  div.example {    display: none;}}

c)

@media only screen and (max-width: 600px) {  div.example {    font-size: 30px;}}

d)

@media only screen and (orientation: landscape) {  body {    background-color: lightblue;  }}