Week 2 Flashcards

1
Q

specifies a regular expression to check the input value against

A

pattern

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

The HTML ………… element is a container for SVG graphics

A

<svg>
</svg>

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

The ………. attribute specifies the visible width of a text area

A

cols

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

specifies the legal number intervals for an input field

A

step

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

By default, the first item in the drop-down list is selected
(T/F)

A

True

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

To define a pre-selected option, add the ………….. attribute to the option

A

selected

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

The HTML …………. element is used to create an HTML form for user input

A

<form>
</form>

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

each input field must have a name attribute to be submitted
(T/F)

A

True

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

specifies that an input field should be disabled

A

disabled

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

The <input></input> defines a button for submitting the form data to a
form-handler

A

submit

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

specifies the default value for an input field

A

value

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

…………. is raster based and composed of pixel

A

Canvas

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

specifies that the form should not be validated when submitted

A

novalidate

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

……….. is good for non-secure data, like query strings in Google

A

GET

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

………………… defines a password field

A

<input></input>

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

specifies where to send the form-data when a form is submitted

A

action

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

The response is displayed in the current window using ……… value

A

_self

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

………. has several methods for drawing paths, boxes, circles, text, and graphic images.

A

SVG

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

The ………….. attribute specifies the visible number of lines in a text area

A

rows

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

When autocomplete is ……….., the browser automatically complete values based on values that the user has entered before

A

on

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

Always use ……….. if the form data contains sensitive or personal information

A

POST

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

………. can be printed with high quality at any resolution

A

SVG

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

An …………… element can be displayed in many ways, depending on the type
attribute

A

<input></input>

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

The ………… element represents the result of a calculation (like one performed by a script)

A

<output>
</output>

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

The ………….. element specifies a list of pre-defined options for an <input></input>
element

A

<datalist>
</datalist>

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

specifies that an input field is required (must be filled out)

A

required

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

specifies the relationship between a linked resource and the current document

A

rel

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

usually, the form data is sent to a file on the server when the user clicks on the
…………

A

submit button

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

The form-handler is specified in the form’s ……….. attribute

A

action

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

The ………. attribute of the <input></input> element, must refer to the id attribute of the ……… element

A

list, <datalist></datalist>

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

<input></input> defines a reset button that will reset all form values to their default values

A

reset

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

specifies that an input field is read only (cannot be changed)

A

readonly

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

The …………….. elements defines an option that can be selected

A

<option></option>

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

The HTML <canvas> element is used to draw graphics, via ...............</canvas>

A

JavaScript

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

Different browsers may use different default types for the button element
(T/F)

A

True

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

The response is displayed in the full body of the window using ……… value

A

_top

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

specifies the width (in characters) of an input field

A

size

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

Form submissions with …………. cannot be bookmarked

A

POST

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

After creating the rectangular canvas area, you must add a …………. to do the drawing

A

JavaScript

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

a ……….. field behaves like a
regular text field

A

search

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

…………. let a user select
ZERO or MORE options of a limited number of choices

A

Checkboxes

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

………. has several methods for drawing paths, boxes, circles, text, and adding
images

A

Canvas

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

…………… let a user select ONE of a limited number of choices

A

Radio buttons

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

………… is used to define graphics for the Web

A

SVG

45
Q

………. can be modified through script and CSS

A

SVG

46
Q

You cannot use the min and max attributes to add restrictions to dates
(T/F)

A

False

47
Q

…………is vector based and composed of shapes

A

SVG

48
Q

The <input></input> is used for ……… fields

A

search

49
Q

A ………… is a rectangular area on an HTML page

A

canvas

50
Q

The …………. element also help users who have difficulty clicking on very small regions (such as radio buttons or checkboxes)

A

<label></label>

51
Q

specifies that an input field should be pre-selected when the page loads (for type=”checkbox” or type=”radio”)

A

checked

52
Q

When …………… present, it specifies that the form-data (input) should not be validated when submitted

A

novalidate attribute

53
Q

The ……….. element is a container for different types of input elements, such as:
text fields, checkboxes, radio buttons, submit buttons, etc

A

<form>
</form>

54
Q

The response is displayed in a new window or tab using ………. value

A

_blank

55
Q

The length of a URL is limited (2048 characters)
(T/F)

A

True

56
Q

………… gives better performance with smaller number of objects or larger surface

A

SVG

57
Q

In numeric input field, You can also set restrictions on what numbers are accepted
(T/F)

A

True

58
Q

The ……….. attribute is a boolean attribute

A

novalidate

59
Q

The response is displayed in a named iframe using ……… value

A

framename

60
Q

The …………… attribute specifies where to display the response that is received after submitting the form

A

target

61
Q

The ………. attribute defines the action to be performed when the form is submitted

A

action

62
Q

The form-data can be sent as URL variables (with method=”…………”) or as HTTP post transaction (with method=”………”)

A

get, post

63
Q

The ………….. is typically a file on the server with a script for processing
input data

A

form-handler

64
Q

specifies the name of the form

A

name

65
Q

specifies the minimum value for an input field

A

min

66
Q

The …………. attribute specifies whether a form should have autocomplete on or off

A

autocomplete

67
Q

The …………… element defines a drop-down list

A

<select></select>

68
Q

If the name attribute is omitted, the value of the input field will not be sent at all
(T/F)

A

True

69
Q

Appends the form data to the URL, in name/value pairs

A

GET

70
Q

An HTML ………. is used to collect user input.

A

form

71
Q

The …………… element is used to group related data in a form

A

<fieldset>
</fieldset>

72
Q

NEVER use ……… to send sensitive data! (the submitted form data is visible in the URL!)

A

GET

73
Q

specifies the HTTP method to use when sending form-data

A

method

74
Q

The …………… element is useful for screen-reader users

A

<label></label>

75
Q

specifies the maximum value for an input field

A

max

76
Q

The default HTTP method when submitting form data is …………..

A

GET

77
Q

specifies how the form-data should be encoded when submitting it to the server (only for method =”post”)

A

enctype

78
Q

The ………….. attribute specifies the HTTP method to be used when submitting the
form data

A

method

79
Q

The ……………. element defines a multi-line input field (a text area)

A

<textarea>
</textarea>

80
Q

The <input></input> is used for input fields that should contain a …………….

A

telephone number

81
Q

The ………………. defines a numeric input field.

A

<input></input>

82
Q

The response is displayed in the parent frame using ……… value

A

_parent

83
Q

The <input></input> defines a ………………

A

radio button

84
Q

The HTML ………… element is used to draw graphics on a web page.

A

<canvas>
</canvas>

85
Q

…….. can be modified through script only

A

Canvas

86
Q

The …………. element defines a caption for the <fieldset> element

A

<legend>
</legend>

87
Q

The <input></input> defines a single-line input field for ……………

A

text input

88
Q

Useful for form submissions where a user wants to bookmark the result

A

GET

89
Q

The HTML ……….. element is the most used form element

A

<input></input>

90
Q

………. has no size limitations, and can be used to send large amounts of data

A

POST

91
Q

specifies the maximum number of character for an input field

A

maxlength

92
Q

Depending on browser support, a date picker can show up in the input field.
(T/F)

A

True

93
Q

specifies where to display the response that is received after submitting the form

A

target

94
Q

…………….. gives better performance with smaller surface or larger number of objects

A

Canvas

95
Q

……… has poor scalability

A

Canvas

96
Q

specifies whether a form should have autocomplete on or off

A

autocomplete

97
Q

Appends the form data inside the body of the HTTP request (the submitted form data is not shown in the URL)

A

POST

98
Q

The <input></input> defines a ……………..

A

checkbox

99
Q

The ………….. element defines a clickable button

A

<button></button>

100
Q

…….. stands for Scalable Vector Graphics

A

SVG

101
Q

The …………… element is only a container for graphics

A

<canvas>
</canvas>

102
Q

The ………………… defines a file-select field and a “Browse” button for file
uploads

A

<input></input>

103
Q

…………. has better scalability

A

SVG

104
Q

The <input></input> is used for input fields that should contain a …………

A

date

105
Q

By default, a ……………. has no
border and no content

A

canvas

106
Q

Specifies the character encodings used for form submission

A

accept-charset

107
Q

The ………… tag defines a label for many form elements

A

<label></label>

108
Q

The for attribute of the ………….. tag should be equal to the ……….. attribute of the <input></input> element to bind them together

A

<label>, id</label>