CSS Flashcards

1
Q

What does CSS make use to specify which element/s to apply style to?

A

selectors

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

In css, what do you use when you are using an id?

A

hashtag (#)

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

In CSS, what do you use to access a class?

A

Dot (.)

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

What are the three 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
5
Q

What is the essence of cascading in CSS?

A

Allows several style sheets to influence the presentation of document

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

What is the best practice to use (style sheets)?

A

External

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

What are the three possible origins of the style of any element?

A

Author
User
User-agent

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

This possible origin is a CSS provided by the web page author

A

Author

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

This possible origin is a browser settings as configured by the user

A

User

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

This possible origin is the default style sheet of rendering engine.

A

User Agent

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

By default, which style take over precedence over each other? What is on top?

A

Author&raquo_space;> User and User Agent

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

What declaration allows you to take precedence over non-important ones?

A

!important

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

With the use of !important declaration we also reverse the order of the precedence by origin by?

A

Important User Agent Styles
.
.
.
Important User Styles
.
.
.
Important Author Styles

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

True of false?

The most specific selector takes precedence?

A

True

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

How is specificity determined?

A

Counting the number of tags, classes, id, attributes, etc. in the selector

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

What factors determine for specificity?

A

1 Inline
2. Contains Id
3. Number of classes, attributes, and pseudo classes
4. Number of tags and pseudo elements

17
Q

This element can be appended to a selector to style specific parts of an element

A

Pseudo Elements

18
Q

If importance, origin, and specificity are all equal, what is the deciding factor?

A

Source Order

19
Q

When does inheritance kick in?

A

When no source tries to set a property

20
Q

What does inheritance eliminates?

A

Redundancy

21
Q

Can all properties be inherited?

22
Q

How is responsive design achieved?

A

Using media queries.

23
Q

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

A

Media Queries

24
Q

Which is designed first? Mobile or laptop?