CSS Flashcards

1
Q

CSS

A

Cascading Style Sheets

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

describe how HTML documents are to be rendered on screen

A

CSS

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

specify which elements to apply style to

A

selectors

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q
<p id='main' class='text'>
A

p#main.text

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q
<p id='main'>
    <span class='text'>
     . . .
A

main .text

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q
<p id='main'>
    <span class='text'>
     . . .
A

main > .text

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q
<div class='one'></div>
<div class='two'></div>
A

.one, .two

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

ways to declare CSS in HTML

A

inline styling
internal style sheets
external style sheets

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q
<p style="color: red;"> some text </p>
A

inline styling

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q
<style type="text/css">
     p { color: green; }
</style>
A

Internal Stylesheet

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q
<link rel='stylesheet' type="text/css" href="style.css">
A

External Stylesheet

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

allows several style sheets to influence the presentation

A

cascading

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

Factors of cascading

A

Important and Origin
Specificity
Source Order

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

style of an element possible origins

A

Author
User
User-Agent

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

declaration that takes precedence over non-important ones

A

!important

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

determining factors for specificity

A

In-line
Contains an ID
Number of classes, attributes, and pseudo-classes
Number of tags and pseudo elements

17
Q

can be assigned to a selector to style specific parts of an element

A

Pseudo Element

18
Q

pseudo elements

A

::after
::before
::first-letter
::first-line
::selection

19
Q

can be appended to a selector to style a special state

A

Pseudo Class

20
Q

pseudo class examples

A

:link
:visited
:hover
:active

21
Q

last declared style overrules the rest

A

Source order

22
Q

kicks in when no source tried to set a property

A

inheritance

23
Q

used to apply a block of CSS only if certain conditions are met

A

Media Queries

24
Q

TRUE OR FALSE

Most developers design mobile-first