WEEK 4 Flashcards

1
Q

It is a simple design language
intended to simplify the process of making web pages presentable. It handles the
look and feel part of a web page. Using this, you can control the color of the text,
the style of fonts, the spacing between paragraphs, how columns are sized and laid

A

Cascading Style Sheets (CSS)

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

Most commonly, CSS is combined with the
markup languages ___

A

HTML or XHTM

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

You can write CSS once and then reuse the same sheet in multiple HTML pages. You can define a style for each HTML element and apply it to
as many web pages as you want.

A

CSS saves time

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

If you are using CSS, you do not need to write HTML tag attributes every time. Just write one CSS rule of a tag and apply it to all the
occurrences of that tag. So, less code means faster download times.

A

Pages load faster

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

To make a global change, simply change the style, and all the elements in all the web pages will be updated automatically.

A

Easy maintenance

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

CSS has a much wider array of attributes than
HTML
, so you can give a far better look to your HTML page in comparison to HTML
attributes.

A

Superior styles to HTML

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

Style sheets allow content to be optimized
for more than one type of device
. By using the same HTML document, different versions of a website can be presented for handheld devices such as PDAs and cellphones or for printing.

A

Multiple Device Compatibility

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

Now HTML attributes are being deprecated and it is being recommended to use CSS. So IT’S A GOOD IDEA TO START USING CSS IN ALL THE HTML PAGES TO MAKE THEM COMPATIBLE WITH FUTURE BROWSERS.

A

Global web standards

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

CSS is created and maintained through a group of people within the ___
called the ___.

A

W3C, CSS Working Group.

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

The CSS Working Group creates documents called
___. When a specification has been discussed and officially ratified by the
W3C members, it becomes a ___.

A

Specifications, Recommendation

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

These ratified specifications are called ___ because the W3C has no control over the actual implementation of the language. Independent
companies and organizations create that software.

A

recommendations

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

The ___ or W3C is a group that makes recommendations about how the Internet works and how it should evolve.

A

World Wide Web Consortium

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

What are the advantages of CSS?

A
  1. CSS saves time
  2. Pages load faster
  3. Easy maintenance
  4. Superior styles to HTML
  5. Multiple device compatibility
  6. Global web standards
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

A CSS comprises of ___ that are interpreted by the browser and then applied to the corresponding elements in your document.

A

Style rules

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

A ___ is an HTML tag at which a style will be applied. This could be any tag like <h1> or <table> etc.

A

Selector

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

A style rule is made of three parts:

A
  1. Selector
  2. Property
  3. Value
17
Q

A ___ is a type of attribute of HTML tag. Put simply, all the HTML attributes are converted into CSS properties. They could be color, border, etc.

A

Property

18
Q

___ are assigned to properties. For example, color property can
have the value either red or #F1F1F1 etc.

A

Values

19
Q

h1{
color: #36CFFF;
}

A

Type Selector

20
Q

Suppose you want to apply a style rule to a particular element only when it lies
inside a particular element.

ul em {
color: #000000;
}

A

Descendant Selectors

20
Q

You can define style rules based on the class attribute of the elements. All the
elements having that class will be formatted according to the defined rule.

h1. black{
color: #000000;
}

A

Class Selectors

21
Q

black{

You can define style rules based on the id attribute of the elements. All the elements
having that id will be formatted according to the defined rule.

        color: #000000; }
A

ID Selectors

22
Q

Rather than selecting elements of a specific type, the ___ quite simply
matches the name of any element type:

*{
color: #36CFFF;
}

A

Universal Selector.