1 Flashcards

1
Q

What attributes does need for a CSS stylesheet?

A

type=”text/css”;
rel=”stylesheet”;
href=”stylesheet.css”

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

What tag is used in table header cells?

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

What is CSS syntax for a given element?

A

selector {
property: value;
}

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

What are the options for font-size?

[and a common standard]

A

px - pixel; pt - point (1/72 inch); em (1=base size); %(100= base size)
[set body with %, use em throughout rest]

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

Syntax for trying multiple fonts in CSS

[backup fonts in CSS]

A

font-family: font1, font2, font3;

[sans-serif, serif, cursive]

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

How do you style nested HTML elements in CSS?

[syntax for direct children]

A

<div> <div> <p> blah </p> </div> </div>

is:
div div p { property: value; }
[div > p { property: value; }

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

what do the id and class selectors look like?

A

id: #id_name { }
class: .class_name { }

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

CSS syntax for psuedo selectors?

A

selector:psuedo_class_selector {
propert: value;
}

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

four possible values for the display property

A

block; inline-block; inline; none

[full width; inline full width that can share; only takes as much room as it needs; disappears from page]

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

what elements are the inline display value better suited for

A

those that are blocks by default: headers and paragraphs, eg

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

what are the layers in the box model

A

margin
border
padding
content

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

syntax for defining, say, margins all at once

A

margin: 1px 2px 3px 4px [clockwise from top]

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

what does clear do

A

moves an element below any floating elements

{clear :both/left/right}

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

position values

A

static [default]; relative [starting point is where it normally would fall in flow]; inherit []; fixed [stays in same place on page]; absolute [goes to the origin of first non-static ancestor element (or html by default)]

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

Syntax: nth-child psuedo-selector

A

element:nth-child(4) {

}

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

URI

A

Uniform resource identifier: a string of characters that can be a urn (name) or url (location) or both.
For example, a book’s ISBN is its urn, while it’s Dewey number might be its url.