Log in from a computer to take this course

You'll need to log in from a computer to start Learn Responsive Design. But you can practice or keep up your coding streak with the Codecademy Go app. Download the app to get started.

apple storegoogle store
Learn

Incredible work! You learned how to change the way a website appears on different screens with media queries and breakpoints

Throughout this lesson, you learned:

  • When a website responds to the size of the screen it’s viewed on, it’s called a responsive website.
  • You can write media queries to help with different screen sizes.
  • Adding the viewport <meta> tag to our code allows us to control the width and scaling of the viewport so that it’s sized and scaled correctly on all devices.
  • Media queries require media features. Media features are the conditions that must be met to render the CSS within a media query.
  • Media features can detect many aspects of a user’s browser, including the screen’s width, height, resolution, orientation, and more.
  • The and operator requires multiple media features to be true at once.
  • A comma separated list of media features only requires one media feature to be true for the code within to be applied.
  • The best practice for identifying where media queries should be set is by resizing the browser to determine where the content naturally breaks. Natural breakpoints are found by resizing the browser.

With your knowledge of media queries and CSS, you can make websites that look great on any device, from a small phone to a huge television. By making your websites responsive, you’ll make it possible for any of your users to have a great experience.

Instructions

Click ‘Up Next’ to continue.

Sign up to start coding

Mini Info Outline Icon
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.

Or sign up using:

Already have an account?