HTML CSS Flashcards

1
Q

What element to use to create SuperScript and Subscript

A

sup & sub element

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

Name three different types of values you can use to specify colors in CSS.

A

Name
RGB
Hex Codes

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

What are three important considerations for choosing fonts?

A

Readability
Tone and Message
Cross-Browser and Cross-Device Issues

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

Why must you have backup fonts assigned when selecting custom fonts?

A

In case fonts are missing

void default

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

What CSS properties make up the box model?

A

margins
borders
padding.

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

Which CSS property pushes boxes away from each other?

A

margin

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

Which CSS property pushes box content away from its border?

A

padding

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

What are 3 examples of what can be done with CSS transitions?

A

rotate, scale, time delay

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

Why might transitions be a helpful effect for styling?

A

Create animation to improve user experiences

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

what does transform property do?

A

adjust how element present on the page

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

How do block-level elements affect the document flow?

A

occupied the entire line

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

How do inline elements affect the document flow?

A

take regular space as needed

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

What are the default width and height of a block-level element?

A

auto 100%

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

What are the default width and height of an inline element?

A

auto auto

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

What accessibility considerations must be considered when choosing HTML elements?

A

using correct elements for screen reader.

eg. em strong thead tbody

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

What is the initial display property of div s?

A

block

17
Q

What is the difference between display: none and visibility: hidden?

A

Visibility: hidden - It is not visible but gets up it’s original space whereas
Display: none - It is hidden and takes no space.

18
Q

Why are CSS resets helpful for cross browser compatibility?

A

in case user agent stylesheet shows un-expected results

19
Q

Why is it important to be mindful of what you reset with your CSS resets?

A

once reset, all default value for user agent stylesheet are gone.

20
Q

What is an argument against using CSS resets?

A

One of the major arguments against using CSS resets is that a lot of the styles are eventually overridden by our main stylesheet, which means that the reset styles unnecessarily add to page load time.

21
Q

What is the default value for the position property of HTML elements?

A

static

render in order, as they appear in the document flow

22
Q

Why is it important to use a grid system for CSS layouts?

A

Grid Layout gives us a method of creating grid structures that are described in CSS and not in HTML. It helps us to create layouts that can be redefined using Media Queries and adapt to different contexts. Grid Layout lets us properly separate the order of elements in the source from their visual presentation.

23
Q

What are the three core parts of a grid system?

A

rows and columns. containers

24
Q

Why is it a good idea to use percentages for grid column widths?

A

fits different view port

25
Q

What is the default flex-direction of a flex container?

A

flex-direction property’s default is row

26
Q

What is the default flex-wrap of a flex container?

A

no wrap

27
Q

Why should flexbox not be used for building complete web page layouts?

A

content driven

28
Q

What is the default flex-wrap of a flex container?

A

The default value of wrap-flex is nowrap.

29
Q

Why should flexbox not be used for building complete web page layouts?

A

templating is great

but not good for unique design

30
Q

shift to left

A

flex justify-content: flex-end