Week 3 Flashcards

1
Q

………… is also a percentage value, 0% is black, and 100% is white

A

Lightness

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

Add ………… after autoplay=1 to let your video start playing automatically (but
muted)

A

mute=1

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

With an ………….., you can change the look of an entire website by changing just one file!

A

external style sheet

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

a type selector that if you had two <p> elements that are siblings of an <h1> element, this rule would apply to both
(h1~p{})

A

General Sibling

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

An ………… can be used as the target frame for a link

A

iframe

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

Defines a set of navigation links

A

<nav>
</nav>

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

Defines a header for a document or a section

A

<header>
</header>

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

…….. is a degree on the color wheel from 0 to 360. 0 is red, 120 is green, and 240 is blue

A

Hue

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

the id selector is used to select more than one unique element!
(T/F)

A

False

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

The ………… selects all the HTML elements with the same style definitions

A

grouping selector

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

You can let your video start playing automatically when a user visits the page, by adding autoplay=……….. to the YouTube URL.

A

1

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

a type selector that targets all elements on the page

A

Universal selector (*)

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

a type selector that targets any element whose class attribute has a value of note

A

Class Selector (.classsname)

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

Each parameter (red, green, and blue) defines the intensity of the color with a
value between 0 and …………

A

255

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

In HTML, a color can be specified using hue, saturation, and lightness (……….) in the
form:
hsl(hue, saturation, lightness)

A

HSL

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

HTML has a much wider array of attributes than CSS
(T/F)

A

False

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

If you are using CSS, you do not need to write HTML tag
attributes every time
(T/F)

A

True

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

The ………. selects HTML elements with a specific class attribute

A

class selector

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

………. is a percentage value, 0% means a shade of gray, and 100% is the full color

A

Saturation

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

The ……….. element is a container for metadata (data about data)

A

<head>
</head>

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

In HTML, a color can be specified using a ………. value in the form: #rrggbb

A

hexadecimal

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

To display …………., set all color parameters to ff, like this: #ffffff

A

white

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

……… are assigned to properties

A

Values

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

Metadata is not displayed
(T/F)

A

True

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

To play an audio file in HTML, use the ………. element

A

<audio>
</audio>

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

To display ………….., set all color parameters to 0, like this: rgb(0, 0, 0)

A

black

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

a type selector that targets the first <p> element after any <h1> element (but not other <p> elements)
(h1+p{})

A

Adjacent Siblings

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

The ……………. element allows you to specify alternative video files which the
browser may choose from

A

<source></source>

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

In HTML, a color can be specified as an ……………., using this formula:
rgb(red, green, blue)

A

RGB value

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

CSS is the acronym for “…………..”

A

Cascading Style Sheet

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

………… 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
32
Q

A ………… is a type of attribute of HTML tag

A

property

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

The ……… uses the id attribute of an HTML element to select a specific element

A

id selector

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

a type selector that targets all element whose id attribute has a value of introduction
(#introduction)

A

ID selector

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

The metadata will not be displayed on the page, but are used by browsers (how to display content or reload page), by search engines (keywords), and other web services
(T/F)

A

True

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

…………. is the browser window size

A

Viewport

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

a type selector that targets the <h1>, <h2>, and <h3> elements

A

Type Selector

38
Q

The ……….. attribute adds video controls, like play, pause, and volume

A

controls

39
Q

To display …………., set all color parameters to 00, like this: #000000

A

black

40
Q

……………….. is about creating web pages that look good on all devices!

A

Responsive web design

41
Q

The most common way to discover the type of a file, is to look at the file extension
(T/F)

A

True

42
Q

…… is one of the most widely used style language over the
web

A

CSS

43
Q

<summary> defines a heading for the ............. element
</summary>

A

<details>
</details>

44
Q

The target attribute of the link must refer to the name attribute of the iframe
(T/F)

A

True

45
Q

Converting videos to different formats can be difficult and time-consuming (T/F)

A

True

46
Q

………….. typically define the document title, character set, styles, scripts, and other meta information

A

Metadata

47
Q

The …………. can be set with a “vw” unit, which means the “viewport width”

A

text size

48
Q

You cannot write CSS once and then reuse same sheet in multiple HTML pages
(T/F)

A

False

49
Q

A ……….. is an HTML tag at which a style will be applied

A

selector

50
Q

Only MP3, WAV, and Ogg audio are supported by the HTML standard
(T/F)

A

True

51
Q

To select an element with a specific id, write a ……….. character, followed by the id of the element

A

hash (#)

52
Q

Defines a heading for the <details> element</details>

A

<summary>
</summary>

53
Q

The text between the <video> and </video> tags will only be displayed in browsers that do not support the <video> element
(T/F)</video>

A

True

54
Q

if the internal style is defined before the link to the external style sheet, the elements will apply the ………… style

A

external

55
Q

a type selector that targets any <a> elements that set inside a <p> element, even if there are other elements nested between them
(p a{})</a>

A

Descendant Selector

56
Q

If the internal style is defined after the link to the external style sheet, the elements will apply …………. style

A

internal

57
Q

Defines a footer for a document or a section

A

<footer>
</footer>

58
Q

If some properties have been defined for the same selector (element) in different style sheets, the value from the last read style sheet will be used
(T/F)

A

True

59
Q

Each HTML page must include a reference to the external style sheet file inside the …………. element, inside the ……… section

A

<link></link>

, head

60
Q

HTML ………….. are not displayed in the browser, but they can help document your HTML source code

A

comments

61
Q

It will be better to group the selectors, to maximize the code
(T/F)

A

False

62
Q

The HTML ……… element is a container for the following elements:

<title>, <style>

, <meta>, <link>, <script>, and <base>
</style></title>
A

<head>
</head>

63
Q

An HTML ………. is used to display a web page within a web page

A

iframe

64
Q

A ………….. will automatically adjust for different screen sizes and
viewports

A

responsive web design

65
Q

……………….. is about using HTML and CSS to automatically resize, hide, shrink, or enlarge, a website, to make it look good on all devices (desktops, tablets, and phones)

A

Responsive Web Design

66
Q

Defines additional details that the user can open and close on demand

A

<details>
</details>

67
Q

An …….. can be written in any text editor, and must be saved with a .css extension.

A

external style sheet

68
Q

Defines a section in a document

A

<section>
</section>

69
Q

The ………. element is typically used to specify the character set, page description, keywords, author of the document, and viewport settings

A

<meta></meta>

70
Q

To group selectors, separate each selector with a ……….

A

comma

71
Q

The style attribute can contain any CSS property
(T/F)

A

True

72
Q

In HTML comments, there is an exclamation point (!) in the start tag and in the end tag
(T/F)

A

False

73
Q

1vw = 1% of viewport width
(T/F)

A

True

74
Q

Only MP4, WebM, and Ogg video are supported by the HTML standard
(T/F)

A

True

75
Q

To display …………., set all color parameters to 255, like this: rgb(255, 255, 255)

A

white

76
Q

Defines content aside from the content (like a sidebar)

A

<aside>
</aside>

77
Q

Style sheets allow content to be optimized for more than one type of device
(T/F)

A

True

78
Q

……………. is used to control the style of a web document in a simple and easy way

A

CSS

79
Q

The universal selector (….)

A

*

80
Q

The external .css file should contain any HTML tags
(T/F)

A

False

81
Q

an …………. has the highest priority, and will override external and internal styles and browser defaults

A

inline style

82
Q

To use …………….., add the style attribute to the relevant element

A

inline styles

83
Q

In HTML, ………… can also be specified using RGB values, HEX values, HSL values,
RGBA values, and HSLA values.

A

colors

84
Q

An …………. may be used if one single HTML page has a unique style

A

internal style sheet

85
Q

a type selector that targets any elements that are children of an <li> element (but not other <a> elements in the page)
(li>a)</a>

A

Child Selector

86
Q

The internal style is defined inside the ………… element, inside the ……….. section

A

<style>

, head
</style>
87
Q

To select elements with a specific class, write a ………… character, followed by the class name

A

period (.)

88
Q

An …………….. may be used to apply a unique style for a single element

A

inline style

89
Q

Add ………. after autoplay to let your video start playing automatically (but muted)

A

muted

90
Q

Defines an independent, self-contained content

A

<article>
</article>

91
Q

HTML ………. is data about the HTML document

A

metadata