Chapter 5 : Responsive Web Design Flashcards

1
Q

What does Responsive Web Design do?

A
  1. Makes your web page look good on all devices
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What language that Responsive Web Design uses ? ( 2 )

A
  1. HTML
  2. CSS
  • Not a program or JavaScript
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What device can the web pages be viewed? ( 3 )

A
  1. Desktops
  2. Tablets
  3. Phones
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the rules for Responsive Web Design? ( 2 )

A
  1. Web page should look good, and be easy to use, regardless of the device
  2. The content shouldn’t leave out information to fit smaller devices, but rather adapt its content to fit any device
  • It is called Responsive Web Design when you use CSS and HTML to resize, hide, shrink, enlarge, or move the content to make it look good on any screen
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

List out things that made a Responsive Web Design ( 5 )

A
  1. Viewport
  2. Media Queries
  3. Images / Videos
  4. Grid View
  5. Framework
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a viewport?

A
  1. User’s visible area of the web page
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What factors that the viewport varies?

A
  1. Devices
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

When is common for web pages to have a static design and a fixed size?

A
  1. Before the invention of Mobile Phones and Tablets
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Which HTML version introduced a method to let web designers to take control over the viewport, through the <meta></meta> tag?

A
  1. HTML5
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How to include viewport to HTML?

A

<meta></meta>

  • meta viewport - Gives the browser instructions on how to control the page’s dimensions and scaling
  • width=device-width - Sets the width of the page to follow the screen-width
  • initial-scale = 1.0 - Sets the initial zoom level when the page is first loaded by the browser
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the result for users scrolling websites horizontally?

A
  1. Poor User Experience
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

List out 3 additional rules to follow for setting up viewport

A
  1. Do not use large fixed width elements
  2. Do not let the content rely on a particular viewport width to render well
  3. Use CSS media queries to apply different styling for small and large screens
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What does Gried View mean?

A
  1. The page is divided into columns
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

How many columns and total width that a responsive grid view often have?

A
  1. 12 columns
  2. 100%
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the percentage of each column when the width is 100%?

A
  1. 100% / 12 columns = 8.33%
  • After calculating each column’s width, we can create col-{num} class then add it inside div element

.col-3 {width: 25%}
.col-9 {width: 75%}

< div >
< div class=”col-3”>< /div >
< div class=”col-9”>< /div >
< /div >

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What framework popularized the 12 column grid? ( 2 )

A
  1. Bootstrap
  2. Foundation
17
Q

When is Media Query introduced?

A
  1. CSS technique introduced in CSS3
18
Q

What does Media Query do?

A
  1. Include a block of CSS properties only if a certain condition is true
19
Q

Try writing code snippet for if the device width is smaller than 500px, the background color will change to lightblue

A

@media only screen and (max-width: 500px)
{
body
{
background-color: lightblue;
}
}

20
Q

What does Mobile First mean in CSS?

A
  1. Means designing for mobile before designing for desktop or any other device
21
Q

What is the different setting img and video width and max-width property to 100%

A
  1. If the width property is set to 100%, the image will be responsive and scale up and down
  2. If the max-width property is set to 100%, the image will scale down if it has to, but never scale up to be larer than its original size
22
Q

What is a framework?

A
  1. Standardized set of concepts, practices and criteria for dealing with a common type of problem
  2. Can be used as a reference to help us approach and resolve new problems of a similar nature
  • There are many framework and it was free and easy to use
23
Q

List out 3 examples for Frameworks

A
  1. Bootstrap
  2. Foundation 3
  3. Grids Systems
24
Q

What is the advantages of using Framework? ( 7 )

A
  1. Speeds up the mock-up process
  2. Clean and tidy code
  3. Solutions to common CSS problems
  4. Browser Compatibility
  5. Learn good practices
  6. Having a single procedure to resolve problems makes maintaining various projects more straightforward
  7. Helpful in collaborative work
25
Q

What is the disadvantages of using framework? ( 4 )

A
  1. Mixes content and presentation
  2. Unused code leftover ( Especially when you want to customize the web design )
  3. Slower Learning Curve
    • Not good for beginner
  4. Don’t learn to do it yourself