CSS basics Flashcards

(11 cards)

1
Q

What is the typical web experience?

A

Web Browser, Internet Service, Server, Database

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

What does web pages do?

A

Stored on the server

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

What does web browser do?

A

Requests a page

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

What does the internet service do?

A

Sends request to the server

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

What does server do?

A

Process and send back the content. Store files in various advanced formats. After processing, sends data back in HTML format

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

What can HTML content contain?

A

Style definitions (text color, size, font, backgrounds). Preferred the style kept in style definitions in CSS

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

What does CSS mean?

A

Cascading style sheets.

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

Why is CSS cascading?

A

The style stored in one CSS file and designs flow down a web page or collection of pages

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

What does CSS cascading style call on a file? What does it mean?

A

File: style.css; Make the changes cascade to all pages at once

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

What is the format for CSS

A
  1. Apply style <body> tag on entire HTML content.
  2. Wrap the set of style in {}
  3. Each ends with a semi-colon
  4. Specify the attribute name, value
  5. Use <div> elements to apply style
  6. <div> elements have sans-serif font
    </div>
  7. Apply to specific classes by using a dot and class name.

<div>This is header text. It will be in red and 30pt size.</div>

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

What are the two ways to reference CSS? Which one is preferred better?

A
  1. Internally: CSS self contained in html
  2. Externally: Segregate your style.
    It is preferable to use the externally so you can reference this across your site to ensure common look and feel
How well did you know this?
1
Not at all
2
3
4
5
Perfectly