Module1-what is CSS Flashcards

1
Q

What does css stand for

A

Cascading Style Sheets

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

What are the ways to add css styling to an html page

A
  1. inline within an element with a style attribute
  2. style tag in the head
  3. css file with rel=stylesheet and href to the file location in the html head
  4. frameworks
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a css rule

A

a style decleration consists of a property that we want to change and the value we want to give that property with a colon between them and a semi colon to close the decleration

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

What is a selector

A

A selector is the way we tell css what elements to style. You write the name of the selector and then open curly braces and the css rule inside

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

What are the different font family types

A
  1. standard
  2. serif
  3. sans-serif
  4. monospace (fixed-width)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Where can I find cool fonts

A

Google fonts

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

what selectors are there?

A
universal - *
element selectors - element type
class selector. - .
id - #
attributes - [ ]
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

specificity

A

inline > id >class, :pseudo class and [attribute] selector,> and ::pseudo element selectors

The rule with the most details has hire specificity

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

what does inherit do?

A

elements inherit the styles of their parents. The specificity of inheritance is the lowest so any element selected directly will override it. If we want to have the inherited style we need to add the keyword inherit to the style

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

combinator

A

allows us to combine selectors.

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

4 types of combinators

A
\+ adjacent sibling
    elements share the same parent
    second element comes immediately after the first one
~ general sibling
        elements share the same parent
> child
      direct child
" " descendant
How well did you know this?
1
Not at all
2
3
4
5
Perfectly