Coder Social home page Coder Social logo

fe-quiz-05-recoded-baghdad-2019's Introduction

Responsive Sites and CSS3 Media Queries

???

Responsive Layout Quiz

?: Responsive site layouts are ideal because they allow for the creation of a single site as opposed to multiple iterations each tailored to a specific device's layout.

(X) TRUE ( ) FALSE

?: What is another term for the 'modern-first' approach to creating responsive websites in which the site is first designed to look and function the best on newer browsers, but still provide functionality and compatibility for older browsers?

( ) progressive enhancement ( ) mobile-second development (X) graceful degradation ( ) regressive enhancement

?: What is another term for the approach to creating responsive layouts in which the site is first designed to fit mobile devices and is then scaled up for larger screens?

( ) desktop-down ( ) mobile-second development ( ) graceful degradation (X) mobile-up

?: Each CSS3 media query may only be given one conditional expression to evaluate.

( ) TRUE (X) FALSE

?: A meta tag with the name of viewport allows us to set the device width, initial scale, and maximum scale, so we can disable zoom in the browser.

(X) TRUE ( ) FALSE

?: Select the most appropriate CSS media query statement to change the #wrapper selector's width value to 90% on screen devices not wider than 1024px.

( ) @media only screen and (min-width: 1024px) { #wrapper { width: 90%; } } (X) @media only screen and (max-width: 1024px) { #wrapper { width: 90%; } } ( ) @media all and (min-width: 1024px) { #wrapper { width: 90%; } } ( ) @media print and (max-width: 1024px) { #wrapper { width: 90%; } }

?: Select the most appropriate CSS media query statement to change the font-size of nav elements to 1.5em when the screen is between 480 and 1024px wide on any type of device.

( ) @media only screen and (min-width: 1024px) { nav { font-size: 1.5em; } } ( ) @media (min-width: 481px) and (max-width: 1023px) { nav { font-size: 1.5em; } } (X) @media all and (min-width: 480px) and (max-width: 1024px) { nav { font-size: 1.5em; } } ( ) @media print and (min-width: 480px) and (max-width: 1024px) { nav { font-size: 1.5em; } }

?: Select the most appropriate CSS media query statement to set section elements to stop floating on screen devices with an available width of 480px or less.

(X) @media only screen and (max-width: 480px) { section { float: none; } } ( ) @media (min-width: 480px) { section { float: none; } } ( ) @media all { section { float: none; } } ( ) @media only screen and (width: 480px) { section { float: none; } }

?: It is important to make media elements (e.g., img, form, input, table, video, audio, and iframe) responsive by setting their width and max-width properties to 100px.

( ) TRUE (X) FALSE

?: Select the most appropriate CSS media query statement to split the paragraph text in article elements into two columns on screen devices that are at least 480px wide.

( ) @media only screen and (max-width: 480px) { article p { column-count: 2; } } ( ) @media only print and (min-width: 480px) { article p { column-count: 2; } } ( ) @media only screen and (min-width: 480px) { article p { number-of-columns: 2; } } (X) @media only screen and (min-width: 480px) { article p { column-count: 2; } }

?: Assuming the font-size property for body elements is set to 100%, for h1 elements to 2.5em, and for p elements to 1em, select the most appropriate CSS media query statement to proportionally double the font-size of both h1 and p elements on screen devices no more than 400px wide.

( ) @media only screen and (max-width: 400px) { h1, p { font-size: 5em, 2em; } } ( ) @media all and (max-width: 400px) { body { font-size: 2em; } } (X) @media only screen and (max-width: 400px) { body { font-size: 200%; } } ( ) @media only screen and (max-width: 400px) { html { font-size: 200%; } }

???

View Responsive Layout Quiz on Learn.co and start learning to code for free.

fe-quiz-05-recoded-baghdad-2019's People

Contributors

fislabstest avatar annjohn avatar pletcher avatar maxwellbenton avatar fs-lms-test-bot avatar kode-tiki avatar ga-be avatar jongrover avatar victhevenot avatar

Watchers

James Cloos avatar Alex Griffith avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.