HTML / CSS Flashcards

1
Q

Why do we need responsive design?

A

to adapt our application to many sizes of screens

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

Why do we use media queries?

A

to specify the display conditions

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

What can we use for layout positioning in CSS?

A

Flexbox, CSS Grid

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

What is the meaning of HTML

A

Hypertext Markup Language

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

What is the meaning of CSS

A

Cascading Style Sheet

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

What tag you use for unordered list

A

The “ul” tag

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

How to target a HTML element with a class ‘items’ in CSS

A

using .items

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

How to target a HTML element with an id ‘container’ in CSS

A

using #container

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

What tag you need to have a text in the tab of the browser

A

My Web Site

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

How do you apply flexbox model to a div

A

div { display: flex; }

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

How to display the children of a div in column

A

div { display: flex; flex-direction: column; }

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

How to have the same space on the main axis between all the children in a flex div

A

div { display: flex; justify-content: space-around; }

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

What the property you will use to have a div with round corners of 5px

A

div { border-radius: 5px; }

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

How do you set the background color to red on the whole page?

A

body { background-color: red; }

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

What is the property to use to change the size of text

A

font-size

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

What are the relative units you can use in CSS

A

%, em, rem, vw, vh