CSS Flashcards

1
Q

What is CSS?

A

CSS stands for Cascading Style Sheets

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

What is CSS used for ?

A

adds style to a web page by dictating how a site is displayed on a browser

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

How is CSS unique?

A

It doesn’t create any new elements, like HTML or JavaScript. Instead, it’s a language used to style HTML elements.

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

What is CSS responsible for ?

A

text style, size, positioning, color etc. It’s also what controls how a website’s style shifts between desktop and mobile versions.
Without CSS, websites would look pretty boring.

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

What are the advantages of CSS?

A
  1. CSS can save you time
    Once you have a style sheet created, you can use it multiple times
  2. CSS is efficient: Only a few lines of code are required to dictate the style on a webpage, - speeds up loading time and keeps file lightweight.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are the 3 types of CSS?

A

internal, external, and inline.

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

What is internal CSS?

A

inserting the CSS code in the <head> section of the HTML document

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

What is external CSS?

A

style sheet is kept in a file separate from the HTML code

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

What is inline CSS?

A

where the CSS code is applied within the HTML code but is not globally applied to a particular element.

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

Lets look at a CSS example:

A

can you see the 3 different types?

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

Lets see another example :

A

can you explain a few of the lines?

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