CSS Flashcards

1
Q

CSS

A

Cascading Style Sheets

Describes the presentation of web pages

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

inline styles

A

Duplicate code

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

Internal Style Sheets

A

Go in the head section and are defined within the style tag

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

Establishes link between webpages and external resources

A

Link tag

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

If there are conflicting styles

A

Last-read style will be used

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

The rules of style sheets consist of

A

Selectors and declarations

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

Selectors

A
Can select HTML elements based on
Types
IDs
Classes
And more
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

declaration blocks

A

Enclosed in braces
Consist of declarations that are separated by semicolon
Last declaration in a block does not have to end with semicolon

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

Declaration

A

Consists of
Property
Colon
Value

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

Type selectors

A

Find html elements based on tag

Also called element selector

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

With id attribute

A

Can create a unique identifier for an HTML element

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

Create ID selector

A

With # symbol

And ID name

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

Have multiple HTML element; want to select bunch of particular elements

A

Class attribute
Great way to apply style to multiple elements regardless of their type
An HTML element can have multiple classes

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

Create class selector

A

Full stop with class name

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

Link tag attributes

A

Type=”text/css”
Rel=”stylesheet”
Href=”path to css file”

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

Property values have data types

A

Font-size : keywords, length, percentage

18
Q

Pixels

A

Small but visible dot on the screen
Pixels are absolute units - they work whenever we want things to have a particular size, rather than be proportional to other things

19
Q

Relative length units that depend on the default font size

A

Em

Great on smartphone screen as they leave the question of exactly how big to make something to the web browser

20
Q

set weight or thickness of the font

A

Font-weight
Keywords: normal, bold
Nine numeric values: 100-900

21
Q

Backup font family

A

.headline{
Font-family:”font1”,”font2”,””;
}

22
Q

Short hand properties

A

Font: bold italic 0.5em “font” Serief;
Border: 2px dotted red;

23
Q

Hexadecimal colors

A

Start with #
Have 3 or 6 digits
Represents the amount or R G B

24
Q

Inline elements

A

Display:inline;
Don’t have width and height.
They take up exactly as much space as the content need

25
Q

Inline-block elements

A

Like inline elements

Can have widths and heights

26
Q

Hide elements

A

Visibility:hidden; - element is hidden still takes up space
Display:none; - the webpage is displayed as if the element did not exist

27
Q

Margins

A

The outermost part of the box model.
Creating white space around an element and outside of its border that separates it from its neighbors
Can use short hand property
Margin property uses clockwise sequence

28
Q

Padding

A

Innermost part of an element

Creating white space around an element’s content and inside element’s margins and borders