Media Queries

Media Queries

University

15 Qs

quiz-placeholder

Similar activities

Bootstrap

Bootstrap

University

10 Qs

Living in the IT Era - Q1

Living in the IT Era - Q1

University

15 Qs

PyGame_4_lesson

PyGame_4_lesson

10th Grade - University

14 Qs

Name the parts

Name the parts

University

17 Qs

Ms word Quiz

Ms word Quiz

University

20 Qs

Mastering HTML and CSS Concepts

Mastering HTML and CSS Concepts

University

20 Qs

Digital Wellbeing

Digital Wellbeing

University

14 Qs

PHASE 2

PHASE 2

University

15 Qs

Media Queries

Media Queries

Assessment

Quiz

Computers

University

Medium

Created by

DANIEL TAGULALAC

Used 1+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of media queries in CSS?

To style HTML elements

To apply different styles based on device characteristics

To add interactivity to a website

To define animations

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a correct media query syntax?

@media screen and (min-width: 600px)

@query media screen (min-width: 600px)

media (max-width: 600px)

@media-query (min-width: 600px)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the min-width media feature in a media query do?

Targets screens that are at least a certain width

Targets screens that are less than a certain width

Targets only mobile devices

Specifies the height of the viewport

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How would you target devices with a maximum width of 768 pixels?

@media screen and (max-height: 768px)

@media only screen and (max-width: 768px)

@media device-width 768px

@media (width: 768px)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you apply styles for screens wider than 1200 pixels?

@media screen and (min-width: 1200px)

@media (max-width: 1200px)

@media only (min-width: 1200px)

@media screen width > 1200px

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the default media type if none is specified in a media query?

print

screen

all

none

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the max-width media feature do?

Targets devices with screens larger than the specified width

Targets devices with screens smaller than or equal to the specified width

Targets devices in landscape mode only

Defines the maximum height of the viewport

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?