Modern HTML and CSS from the Beginning (Including Sass) - Vh & Vw Units

Modern HTML and CSS from the Beginning (Including Sass) - Vh & Vw Units

Assessment

Interactive Video

Information Technology (IT), Architecture

University

Hard

Created by

Quizizz Content

FREE Resource

The video tutorial introduces viewport units VH and VW in CSS, explaining how they represent viewport height and width. It demonstrates creating a landing page using these units, emphasizing the use of VH for vertical spacing. The tutorial covers styling elements with CSS, including background images and text alignment. It also introduces Flexbox for centering content and media queries for responsive design, ensuring the layout adapts to different screen sizes.

Read more

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What do VH and VW units represent in web design?

Visible height and visible width

Variable height and variable width

Viewport height and viewport width

Virtual height and virtual width

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many slices does a viewport height consist of?

100

75

50

150

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of setting the box-sizing property to border-box?

To exclude padding and border from the element's total width and height

To set the element's width and height to zero

To include padding and border in the element's total width and height

To make the element's width and height equal

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why might you use 100 VH for a header's height?

To ensure the header is invisible

To ensure the header covers the entire viewport height

To make the header half the height of the viewport

To make the header twice the height of the viewport

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the 'no-repeat' property do for a background image?

Repeats the image horizontally

Repeats the image vertically

Prevents the image from repeating

Repeats the image diagonally

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main difference between VH and VW units?

VH is for vertical, VW is for horizontal

VH is for volume, VW is for weight

VH is for height, VW is for width

VH is for width, VW is for height

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why might VW units be less commonly used than VH units?

Because they are not supported by all browsers

Because content often spans the full width by default

Because they are only used for images

Because they are harder to calculate

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?