General CSS Flashcards

1
Q

What is CSS used for

A

To control how a web page looks

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
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
3
Q

What are inline style sheets

A

Styles that are embedded right within the HTML code they affect

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

What are internal style sheets

A

Styles that are placed within the header information of the web page, and then affect all corresponding tags on a single page

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

What are external style sheets

A

Styles that are coded in a separate document, which is then referenced from within the header of the actual web page

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

How are internal style sheets made

A

Using the style element to contain all the instructions for the page

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

What file extension does an external CSS style sheet have

A

.css

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

What three types of style sheets does CSS provide

A

inline, internal and external

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

How do CSS inline declarations appear

A

Enclosed in straight quotes using the style attribute of whichever tag you want to affect

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

What is a CSS style

A

Essentially a rule that specifies how a particular element will be formatted

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

What does CSS padding refer to

A

The spacing between the text and the borders of the section

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

What is the CSS margin

A

The spacing between the section and its surroundings

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

What are CSS style sheets made up of

A

Rules

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

What does the cascading part of ‘Cascading Style Sheets’ refer to

A

The rules that determine which of a set of competing rules apply to an element

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

What does a CSS border have

A

A width, type, and colour

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

What is the CSS box model

A

A model that defines the dimensions of elements as they’re laid out on the page

17
Q

According to the CSS box model, what do all elements have

A

a width, height, padding, border and a margin

18
Q

How is an elements width defined

A

explicitly or determined automatically by the browser based on the content and display mode

19
Q

In CSS, what is a floated element

A

An element that’s outside of the normal flow of text

20
Q

Why must you clear un-floated elements that appear under floated elements

A

to prevent the floated elements from overlapping the un-floated elements