adplus-dvertising
frame-decoration

Question

What does this code do ?
 @media only screen and (max-width: 500px) {
    body {
        background-color: lightblue;
    }
}

a.

If the browser window is smaller than 500px, the background color will change to lightblue:

b.

If the browser window is larger than 500px, the background color will change to lightblue:

c.

The background color will change to lightblue

d.

Nothing happens

Posted under CSS

Answer: (a).If the browser window is smaller than 500px, the background color will change to lightblue:

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What does this code do ?

Similar Questions

Discover Related MCQs

Q. Which of the following css propery defines a relationship between bound elements(s) and some code or content?

Q. Which of the following css propery define the properties that will be animated in an animation rule?

Q. Which of the following CSS3 property is used to tell the browser what the sizing properties should be include?

Q. Which of the following CSS3 property specifies where to navigate when using the arrow-down navigation key?

Q. Which of the following CSS3 property specifies the sequential navigation order for an element?

Q. Which of the following nav-left value sets it’s value to default value?

Q. Which of the following CSS3 property adds space between an outline and the edge or border of an element?

Q. Which of the following outline-offset value sets the distance the outline is outset from the border edge?

Q. Which of the following CSS3 property specifies whether or not an element is resizable by the user?

Q. Which of the following CSS3 property specifies where to navigate when using the arrow-up navigation key?

Q. Which of the following CSS3 property specifies where to navigate when using the arrow-right navigation key?

Q. Which of the following nav-right value is used to the inherits this property from its parent element?

Q. Which of the following Module is not available in CSS3.

Q. What module introduces the ability to modify CSS property values over time, such as position or color, to create animated layouts?

Q. What module defines the management of generated content for print output, including crop mark indication, header/footer handling, and much more?

Q. What module defines the handling of lists, including marker styles and some aspects of counters?

Q. What module expands the absolute and relative units of measure, including significant changes to support animation and aural changes with time (s and ms) and angle (deg and rad) values?

Q. Which of the following selector is used to selects siblings?

Q. Which of the following selector is used to selects the elements that are the default among a set of similar elements?

Q. Which of the following selector is used to selects the element that is the first child of its parent that is of its type?