Week 4-5 Flashcards

1
Q

Fondly referred to as ___, is a simple design language
intended to simplify the process of making web pages presentable?

A

CSS(Cascading Style Sheets)

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

___ handles the
look and feel part of a web page.

A

CSS

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

Using ___, you can control the color of the text,
the style of fonts, the spacing between paragraphs, how columns are sized and laid
out, what background images or colors are used, as well as a variety of other effects.

A

CSS

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

Is easy to learn and understand but it provides a powerful control over the
presentation of an HTML document.

A

CSS

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

Is combined with the
markup languages HTML or XHTM

A

CSS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
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
7
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
8
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
9
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
10
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
11
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
12
Q

CSS is created and maintained through a group of people within the W3C
called the CSS _______ Group?

A

Working Group

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

The CSS Working Group creates documents called _____________?

A

specifications

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

When a specification has been discussed and officially ratified by the
W3C members, it becomes a ______________.

A

recommendation

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

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

A

Components of CSS Syntax

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
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

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

This is the same selector we have seen above. Again, one more example to give a
color to all level 1 headings?

A

Type Selectors

20
Q

Rather than selecting elements of a specific type, the ___________ selector quite
simply matches the name of any element type?

A

Universal Selectors

21
Q

Suppose you want to apply a style rule to a particular element only when it lies
inside a particular element. As given in the following example, the style rule will
apply to element only when it lies inside the tag.

A

Descendant Selectors

22
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.

A

Class Selectors

23
Q

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.

A

ID Selector

24
Q

You have seen the descendant selectors. There is one more type of selector, which
is very similar to descendants but have different functionality.

A

Child Selectors

25
Q

You can also apply styles to HTML elements with particular attributes

A

The Attribute Selectors

26
Q

Selects all paragraph elements with a lang attribute.

A

p[lang]

27
Q

Selects all paragraph elements whose lang attribute has a value of exactly “fr”.

A

p[lang=”fr”]

28
Q

Selects all paragraph elements whose lang attribute contains the word “fr”.

A

p[lang~=”fr”]

29
Q

Selects all paragraph elements whose lang attribute contains values that are exactly “en”, or begin with “en-“.

A

p[lang|=”en”]

30
Q

You may need to define multiple style rules for a single element.

A

Multiple Style Rules

31
Q

You can apply a style to many selectors if you like. Just separate the selectors with a comma.

A

Group Selectors

32
Q

You can use style attribute of any HTML
element to define style rules. These rules will be applied to that element only.

A

Inline CSS – The <style> Attribute</style>

32
Q

You can put your CSS rules into an
HTML document using the tags. Rules defined using this syntax will be applied to
all the elements available in the document.

A

Embedded CSS – The <style> Element</style>

33
Q

The element can be used to include an external stylesheet file in your HTML document. An external style sheet is a separate text file with .css extension. You define all the Style rules within this text file and then you can include this file in any HTML document using element.

A

External CSS – The <link></link> Element

34
Q

is used to import an external stylesheet in a manner similar to the element?

A

Imported CSS - @import Rule