Stylesheets Flashcards

(8 cards)

1
Q

Where do I put styles?

A

In open tags of individual elements, HTML doc head, separate file

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

The link element

A

<link></link>

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

Selectors

A

P {
text-align: center;
color: red;
font-size: 10px;
}

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

Multiple Elements

A

h1, h2, h3, h4, h5, h6 {
color: #00088;
font-family: helvetica, arial;
}

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

Descendent Selectors

A

targets all elements that are descendants of a specified element, regardless of how deeply they are nested

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

Targeting Elements

A

<p>
in CSS: p.something-specific {
blah blah;
}
</p>

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

ID

A

Similar to class, but more restrictive: each element can only have one ID, each page can only have one element with this ID

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

Html is for markup: body elements, h1, p, etc

A

Css is for formatting: bold, italics, font

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