Part 3 - Client side Validation and feedback Flashcards

1
Q

this javascript event occurs when an element gets focus

for example the user uses the Tab key to ‘tab’ to an input or clicks on a text input or its label.

A

describe the javascript event
focus

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

describe the following <input /> type and write its syntax

text

A

Allows us to collect a short amount of text from the user such as their name.

Syntax:

<input type=”text” />

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

1.Detect that the user has changed an input value through typing or clicking by responding to form events.
2.In JavaScript, obtain a reference to the input element and its value.
3.Compare that value against what is permitted for that input element and the business requirements of the application.
4.If the value matches the requirements, provide feedback to the user to confirm this.
5.If the value doesn’t match the requirements, provide a different message, indicating that the data is not suitable, and explaining what is needed.
6.If the user attempts to submit the form to the web server while some input values don’t match the requirements, the submission is blocked and a further message explaining what needs to be done is added.
7.If the user attempts to submit the form when all input values match the requirements, then the form submission is permitted.

A

describe 7 steps for user input validation

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

what is the syntax and parameters for the HTML label tag

A

syntax:

<label for="element_id">label text</label>

@param element_id the id of the element the label will be bound to

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

describe the following form element and its syntax

select

A

This is a form element that will create a drop down list of options of which we can select only one option from.

NOTE: However this can be extended to accept multiple selections if the multiple attribute is used

Syntax:

<select name=”” id=””>
    <option value=””>””</option>
    <option value=””>””</option>
    <option value=””>””</option>
</select>
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

this will tie a regular expression to the start or end of the value

NOTE: These are placed within the forward slashes with the pattern

A

describe the
javascript regex anchor

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

this javascript event occurs when the value of an element changes at the point the change is completed

for example by clicking or by losing focus after entering text. This event is particularly useful for detecting that the user has made a new selection from a dropdown list, set of radio buttons or checkboxes.

A

describe the javascript event
change

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

This is a form element that can be used to collect a large piece of text from the user such as a comment or review

Syntax:

<textarea></textarea>

A

describe the form element and syntax of

textarea

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

method:
Returns the string value of the regular expression

A

describe the regex method
toString()

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

describe the following <input /> type and write its syntax

hidden

A

Allows us to create a hiddn field that will be sent to the server and hold some value we give it

Syntax:

<input type=”hidden” />

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

what are the three methods to
attach an event handler to a document event

A

this can be done by:
1. attaching the event hanler within the HTML
2. attaching it using javascript (via referencing the element)
3. attach In javascript using the addEventListener() method

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

regex:

/09$/

A

write a regex that will match values that end with 09

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

this is a form element that provides the textual description for the input tag. such as asking a question that will accompany the input

note: this is used in contrast to only using <p> tags

A

describe the HTML form element

<label></label>

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

describe the following attribute of the <input /> tag

Min=””

A

This <input /> attribute

specify a minimum value

NOTE: works only with number, range, date, datetime-local, month, time and week

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

This works just like the text input type but will hide the typed text

Syntax:

<input type=”password” />

A

describe the following <input /> type and write its syntax

password

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

using CSS write the syntax to select an input element which has the type attribute of text

A

syntax:

input[type=text] {
    declaration;
}
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

syntax:

<form onsubmit="script">

@param script the script to be ran on submit

A

what is the syntax and parameters of the <form></form> attribute
onsubmit

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

give 2 attributes of the form element

<textarea></textarea>

A

attributes include:

Rows = “” - the number of rows the textbox will have (in characters)
Cols = “” - the number of columns the textbox will have (in characters)

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

what is the syntax for creating a regex object in javascript

A

syntax:

/pattern/modifier(s);

Example:

var regex = /fox/i;

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

this is a special string of characters that will create a search pattern. it can then be tested against a string to check whether the pattern is contained within the string

A

what is a
regular expression (REGEX)

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

this <input /> attribute gives the input element a name
NOTE: this attribute is sent to the server on form submission

A

describe the following attribute of the <input /> tag

Name = “”

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

this can be accomplished using the HTML

<form></form>

A

how can we collect and then send user input back to a server

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

this is an object that holds the html element that triggered the event and all of its properties

A

describe
event.target

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

is a property of the event.target object and will return the value that is held by the HTML element

A

describe
event.target.value

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

describe the following <input /> type and write its syntax

checkbox

A

Similar to the radio input type but when each input shares the same name it becomes a group and the user can select multiple items from the checkbox group

Syntax:

<input type=”checkbox” />

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

this Is a form element that can be placed within a form and can be used to collect different types of data from the user

NOTE: This is a self closing element or empty element so for it to be xml compliant it must be manually closed

A

describe the HTML form element
<input />

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

describe the following CSS selector and its syntax
focus

A

is a CSS selector that is used to select the element that has focus.

syntax:

\:focus {
  css declarations;
}
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
28
Q

Syntax:
<elementeventType="myScript">

@param element a html element such as input
@param eventType an event type such as onchange
@param myScript a javascript function that has 1 argument passed to it being the event object

A

what is the syntax and parameters that will
attach an event handler to an element via HTML

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

what is a
regular expression (REGEX)

A

this is a special string of characters that will create a search pattern. it can then be tested against a string to check whether the pattern is contained within the string

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

write the regex that will match only the value “fox”

A

regex:

/^fox$/

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

describe the following attribute of the <input /> tag

**Required **

A

This <input /> attribute states that it is a requirement that this input is filled before form is sent

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

attributes include:

Rows = “” - the number of rows the textbox will have (in characters)
Cols = “” - the number of columns the textbox will have (in characters)

A

give 2 attributes of the form element

<textarea></textarea>

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

describe an
event handler

A

this is a script or function that will be able to handle any events that occur on the page

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

write out the HTML that is a skeleton of a form with one input

A

HTML:

<form method="POST" action="URL_to_server_script">
<p>
<label for="">label_text_for_input</label>
<input type="" />
</p>
</form>
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
35
Q

HTML:

<form method="POST" action="URL_to_server_script">
<p>
<label for="">label_text_for_input</label>
<input type="" />
</p>
</form>
A

write out the HTML that is a skeleton of a form with one input

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

this can be done by:
1. selecting a form element
2. selecting a form element and attribute
3. selecting the class of an element
4. selecting the id of an element

A

name 4 ways we can select elements and style forms in CSS

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

This <input /> attribute specify a maximum value

NOTE: works only with number, range, date, datetime-local, month, time and week

A

describe the following attribute of the <input /> tag

**Max=”” **

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

HTML:

<form onsubmit="return handleSubmit(event.target)”>
</form>
A

write the HTML that creates a form with the onsubmit attribute that
1. calls a function named handleSubmit()
2. passes the function the target of the event
3. determines whether the form should be submitted or not

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

describe the following <input /> type and write its syntax

password

A

This works just like the text input type but will hide the typed text

Syntax:

<input type=”password” />

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

describe
event.target

A

this is an object that holds the html element that triggered the event and all of its properties

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

this is created whenever an event occurs on the web page (such as a value change on a form or a mouse click).

It is a javascript object that has within it properties and values that describe everything about the event such as which html element created it or what type of event it was

A

describe an
event object

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

This <input /> attribute gives the element a unique id within the html

NOTE: can be referenced by CSS, javascript and HTML tags such as <label></label>

A

describe the following attribute of the <input /> tag

Id = “”

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

This <input /> attribute state a maximum number of characters for the input

A

describe the following attribute of the <input /> tag

Maxlength = “”

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

syntax:

<label for="element_id">label text</label>

@param element_id the id of the element the label will be bound to

A

what is the syntax and parameters for the HTML label tag

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

name 3 javascript regex methods

A

methods:
1. exec()
2. test()
3. toString()

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

describe the javascript event
change

A

this javascript event occurs when the value of an element changes at the point the change is completed

for example by clicking or by losing focus after entering text. This event is particularly useful for detecting that the user has made a new selection from a dropdown list, set of radio buttons or checkboxes.

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

name 4 ways we can select elements and style forms in CSS

A

this can be done by:
1. selecting a form element
2. selecting a form element and attribute
3. selecting the class of an element
4. selecting the id of an element

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

regex modifier that Perform a global match (find all matches rather than stopping after the first match)

A

describe the javascript regex modifier
g

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

regex:

/^fox$/

A

write the regex that will match only the value “fox”

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

what is the syntax and parameters that will
attach an event handler to an element via javascripts addEventListener() method

A

Syntax:

element.addEventListener(event,function,useCapture)

@param event the event type we wish to have a function called for
@parm function the javascript function that will be called on such an event
@param useCapture a boolean used for bubbling

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

describe the form element and syntax of

textarea

A

This is a form element that can be used to collect a large piece of text from the user such as a comment or review

Syntax:

<textarea></textarea>

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

this Tests for a match in a string. Returns the first match

A

describe the regex method
exec()

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

is a CSS selector that is used to select the element that has focus.

syntax:

\:focus {
  css declarations;
}
A

describe the following CSS selector and its syntax
focus

54
Q

describe the
**multiple attribute **
of the form element

<select></select>

A

this attribute specifies that multiple item may be selected from the dropdown list by the user using CTRL it also specifies how many options are shown at a time

55
Q

is the charcter used to anchor the regex to the end of the value

A

describe the javascript regex anchor
$

56
Q

describe the following <input /> type and write its syntax

email

A

Works similar to the text input type except allows for limited email validation on the client side by the browser

Syntax:

<input type=”submit” />

57
Q

describe the regex method
exec()

A

this Tests for a match in a string. Returns the first match

58
Q

we can check this using

<noscript>”display text if javascript disabled”</noscript>

A

in HTML how can we check if javascript has been disabled on the client

59
Q

the reason for this is:
1.Accessibility - a screen reader for example can associate the label and input
2.Usability/accessibility - the label itself acts as a clickable element for focusing on the input this increases the clickable area of the input (especially good for radio buttons)

A

when we have used an <input> tag why should we always have a <label></label> tag associated with it

60
Q

is a property of the event object and will return the type of event that was triggered

A

describe
event.type

61
Q

This <input /> attribute give the input an initial value or value to hold

NOTE: this attribute will be sent to the server on submition of the form

A

describe the following attribute of the <input /> tag

Value = “”

62
Q

describe the javascript event
blur

A

this javascript event occurs when an element loses focus

for example the user clicks somewhere else on the page or field.

63
Q

methods:
1. exec()
2. test()
3. toString()

A

name 3 javascript regex methods

64
Q

Syntax:

element.addEventListener(event,function,useCapture)

@param event the event type we wish to have a function called for
@parm function the javascript function that will be called on such an event
@param useCapture a boolean used for bubbling

A

what is the syntax and parameters that will
attach an event handler to an element via javascripts addEventListener() method

65
Q

describe the javascript regex anchor
$

A

is the charcter used to anchor the regex to the end of the value

66
Q

This <input /> attribute states that it is a requirement that this input is filled before form is sent

A

describe the following attribute of the <input /> tag

**Required **

67
Q

describe the HTML form element
<input />

A

this Is a form element that can be placed within a form and can be used to collect different types of data from the user

NOTE: This is a self closing element or empty element so for it to be xml compliant it must be manually closed

68
Q

describe the following attribute of the <input /> tag

Checked

A

This <input /> attribute will specify that this input element is selected by default

69
Q

describe the following <input /> type and write its syntax

number

A

can be used to collect numeric only data from the user

Syntax:

<input type=”number” />

70
Q

describe
Event.target.id

A

is a property of the event.target object and will return the id of the element

71
Q

describe the javascript regex modifier
i

A

regex modifier that Perform case-insensitive matching

72
Q

describe
event.target.value

A

is a property of the event.target object and will return the value that is held by the HTML element

73
Q

write the HTML that creates a form with the onsubmit attribute that
1. calls a function named handleSubmit()
2. passes the function the target of the event
3. determines whether the form should be submitted or not

A

HTML:

<form onsubmit="return handleSubmit(event.target)”>
</form>
74
Q

describe the following attribute of the <input /> tag

**Max=”” **

A

This <input /> attribute specify a maximum value

NOTE: works only with number, range, date, datetime-local, month, time and week

75
Q

describe the regex method
toString()

A

method:
Returns the string value of the regular expression

76
Q

describe the javascript regex anchor
^

A

is the charcter used to anchor the regex to the start of the value

77
Q

describe the HTML
<form></form>
attribute
onsubmit

A
  1. this will create an event upon the form submition the event can then be passed to javascript
  2. can be used to call a script before the form is sent
  3. can be used to determine whether the form should be sent (by including a return keyword)
78
Q

what is the syntax and parameters of the <form></form> attribute
onsubmit

A

syntax:

<form onsubmit="script">

@param script the script to be ran on submit

79
Q

Similar to the radio input type but when each input shares the same name it becomes a group and the user can select multiple items from the checkbox group

Syntax:

<input type=”checkbox” />

A

describe the following <input /> type and write its syntax

checkbox

80
Q

Syntax:

object.eventType=script;

@param object a html element
@param eventType an event type such as onchange
@param script a javascript function that has 1 argument passed to it being the evnt object

A

what is the syntax and parameters that will
attach an event handler to an element via javascript (get a reference to the HTML element)

81
Q

is a property of the event.target object and will return the id of the element

A

describe
Event.target.id

82
Q

describe the following attribute of the <input /> tag

Id = “”

A

This <input /> attribute gives the element a unique id within the html

NOTE: can be referenced by CSS, javascript and HTML tags such as <label></label>

83
Q

syntax:

/pattern/modifier(s);

Example:

var regex = /fox/i;

A

what is the syntax for creating a regex object in javascript

84
Q

This <input /> attribute will specify that this input element is selected by default

A

describe the following attribute of the <input /> tag

Checked

85
Q

Creates a submit button and is used to submit the form

NOTE: this itself can also hold a name and a value attribute so on the server side we could have different behaviours depending upon these

Syntax:

<input type=”submit” />

A

describe the following <input /> type and write its syntax

submit

86
Q

write a regex that will match values that end with 09

A

regex:

/09$/

87
Q

describe the
javascript regex anchor

A

this will tie a regular expression to the start or end of the value

NOTE: These are placed within the forward slashes with the pattern

88
Q

describe the following <input /> type and write its syntax

submit

A

Creates a submit button and is used to submit the form

NOTE: this itself can also hold a name and a value attribute so on the server side we could have different behaviours depending upon these

Syntax:

<input type=”submit” />

89
Q

describe the following attribute of the <input /> tag

Maxlength = “”

A

This <input /> attribute state a maximum number of characters for the input

90
Q

Allows us to collect a short amount of text from the user such as their name.

Syntax:

<input type=”text” />

A

describe the following <input /> type and write its syntax

text

91
Q

method:
Tests for a match in a string. Returns true or false

A

describe the regex method
test()

92
Q

describe
event.type

A

is a property of the event object and will return the type of event that was triggered

93
Q

write the syntax to select an input element in CSS

A

syntax:

input {
    declaration;
}
94
Q

Works similar to the text input type except allows for limited email validation on the client side by the browser

Syntax:

<input type=”submit” />

A

describe the following <input /> type and write its syntax

email

95
Q

this javascript event occurs when the value of an element changes, each time it happens, for example on every keypress.

NOTE: This event may not be supported in all web browsers, and the user may not welcome feedback before they have finished entering data

A

describe the javascript event
input

96
Q

describe the javascript event
focus

A

this javascript event occurs when an element gets focus

for example the user uses the Tab key to ‘tab’ to an input or clicks on a text input or its label.

97
Q

when we have used an <input> tag why should we always have a <label></label> tag associated with it

A

the reason for this is:
1.Accessibility - a screen reader for example can associate the label and input
2.Usability/accessibility - the label itself acts as a clickable element for focusing on the input this increases the clickable area of the input (especially good for radio buttons)

98
Q

these include:

<input>
<label>
<select>
<textarea>
<button>
<fieldset>
<legend>
<datalist>
<output>
<option>
<optgroup>
A

name as many
HTML form elements
as you can. there are 11 in total

99
Q

write a regex that will match values that begin with 09

A

regex:

/^09/

100
Q

describe the regex method
test()

A

method:
Tests for a match in a string. Returns true or false

101
Q

describe the HTML form element

<label></label>

A

this is a form element that provides the textual description for the input tag. such as asking a question that will accompany the input

note: this is used in contrast to only using <p> tags

102
Q
  1. this will create an event upon the form submition the event can then be passed to javascript
  2. can be used to call a script before the form is sent
  3. can be used to determine whether the form should be sent (by including a return keyword)
A

describe the HTML
<form></form>
attribute
onsubmit

103
Q

Can be used to create a set of radio buttons that the user can select from.

NOTE: If each radio button shares the same name then only one of those radio buttons may be selected

Syntax:

<input type=”radio” />

A

describe the following <input /> type and write its syntax

radio

104
Q

this javascript event occurs when an element loses focus

for example the user clicks somewhere else on the page or field.

A

describe the javascript event
blur

105
Q

This is a form element that will create a drop down list of options of which we can select only one option from.

NOTE: However this can be extended to accept multiple selections if the multiple attribute is used

Syntax:

<select name=”” id=””>
    <option value=””>””</option>
    <option value=””>””</option>
    <option value=””>””</option>
</select>
A

describe the following form element and its syntax

select

106
Q

describe the javascript event
input

A

this javascript event occurs when the value of an element changes, each time it happens, for example on every keypress.

NOTE: This event may not be supported in all web browsers, and the user may not welcome feedback before they have finished entering data

107
Q

name as many
HTML form elements
as you can. there are 11 in total

A

these include:

<input>
<label>
<select>
<textarea>
<button>
<fieldset>
<legend>
<datalist>
<output>
<option>
<optgroup>
108
Q

what is the syntax and parameters that will
attach an event handler to an element via javascript (get a reference to the HTML element)

A

Syntax:

object.eventType=script;

@param object a html element
@param eventType an event type such as onchange
@param script a javascript function that has 1 argument passed to it being the evnt object

109
Q

this attribute specifies that multiple item may be selected from the dropdown list by the user using CTRL it also specifies how many options are shown at a time

A

describe the
**multiple attribute **
of the form element

<select></select>

110
Q

describe 7 steps for user input validation

A

1.Detect that the user has changed an input value through typing or clicking by responding to form events.
2.In JavaScript, obtain a reference to the input element and its value.
3.Compare that value against what is permitted for that input element and the business requirements of the application.
4.If the value matches the requirements, provide feedback to the user to confirm this.
5.If the value doesn’t match the requirements, provide a different message, indicating that the data is not suitable, and explaining what is needed.
6.If the user attempts to submit the form to the web server while some input values don’t match the requirements, the submission is blocked and a further message explaining what needs to be done is added.
7.If the user attempts to submit the form when all input values match the requirements, then the form submission is permitted.

111
Q

syntax:

input[type=text] {
    declaration;
}
A

using CSS write the syntax to select an input element which has the type attribute of text

112
Q

describe an
event object

A

this is created whenever an event occurs on the web page (such as a value change on a form or a mouse click).

It is a javascript object that has within it properties and values that describe everything about the event such as which html element created it or what type of event it was

113
Q

describe the following attribute of the <input /> tag

Minlength = “”

A

This <input /> attribute state a minimum number of characters for the input

114
Q

what is the syntax and parameters that will
attach an event handler to an element via HTML

A

Syntax:
<elementeventType="myScript">

@param element a html element such as input
@param eventType an event type such as onchange
@param myScript a javascript function that has 1 argument passed to it being the event object

115
Q

this is a script or function that will be able to handle any events that occur on the page

A

describe an
event handler

116
Q

regex modifier that Perform case-insensitive matching

A

describe the javascript regex modifier
i

117
Q

Allows us to create a hiddn field that will be sent to the server and hold some value we give it

Syntax:

<input type=”hidden” />

A

describe the following <input /> type and write its syntax

hidden

118
Q

describe the following attribute of the <input /> tag

Name = “”

A

this <input /> attribute gives the input element a name
NOTE: this attribute is sent to the server on form submission

119
Q

syntax:

input {
    declaration;
}
A

write the syntax to select an input element in CSS

120
Q

in HTML how can we check if javascript has been disabled on the client

A

we can check this using

<noscript>”display text if javascript disabled”</noscript>

121
Q

is the charcter used to anchor the regex to the start of the value

A

describe the javascript regex anchor
^

122
Q

describe the following <input /> type and write its syntax

radio

A

Can be used to create a set of radio buttons that the user can select from.

NOTE: If each radio button shares the same name then only one of those radio buttons may be selected

Syntax:

<input type=”radio” />

123
Q

describe the following attribute of the <input /> tag

Value = “”

A

This <input /> attribute give the input an initial value or value to hold

NOTE: this attribute will be sent to the server on submition of the form

124
Q

describe the javascript regex modifier
g

A

regex modifier that Perform a global match (find all matches rather than stopping after the first match)

125
Q

this can be done by:
1. attaching the event hanler within the HTML
2. attaching it using javascript (via referencing the element)
3. attach In javascript using the addEventListener() method

A

what are the three methods to
attach an event handler to a document event

126
Q

how can we collect and then send user input back to a server

A

this can be accomplished using the HTML

<form></form>

127
Q

can be used to collect numeric only data from the user

Syntax:

<input type=”number” />

A

describe the following <input /> type and write its syntax

number

128
Q

This <input /> attribute

specify a minimum value

NOTE: works only with number, range, date, datetime-local, month, time and week

A

describe the following attribute of the <input /> tag

Min=””

129
Q

This <input /> attribute state a minimum number of characters for the input

A

describe the following attribute of the <input /> tag

Minlength = “”

130
Q

regex:

/^09/

A

write a regex that will match values that begin with 09