1. Home
  2. Computer Science MCQs
  3. Cascading Style Sheets - CSS
  4. Which media query applies styles only to viewports 768px…

Added 2 Nov 2026

Which media query applies styles only to viewports 768px wide or narrower?

  1. @media (max-width: 768px) Correct answer
  2. @media (max-height: 768px)
  3. @media (min-width: 768px)
  4. @media (min-height: 768px)

Correct answer

A. @media (max-width: 768px)

13 views

MCQSEXAM

Explanation

max-width: 768px matches widths up to and including 768px, a common tablet and mobile breakpoint in responsive design. min-width is used for a mobile-first approach.

Reference

Asked in: NTS, Web Developer Interviews

Preparing for an exam?

Doubts & discussion

Not sure why the answer is A? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Cascading Style Sheets - CSS MCQs

Practise all Cascading Style Sheets - CSS MCQs

Similar MCQs