Form Validation Flashcards

1
Q

Validation

A

The concept of checking user provided data against the required data

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

Server-Side Validation

A

Validation where data is sent to another machine (usually a server) and is processed there. This type of validation is usually used for usernames and pass codes,

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

Client-Side Validation

A

Validation that occurs before the data is sent to the server and the information is checked on the browser (the client)

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

What does the <em>required</em> attribute do?

A

Makes a forum input required, and it will not allow the forum to be submitted unless it is filled out.

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

Where does the <em>required</em> attribute go?

A

In the <strong>input</strong> element

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

What do the <em>min</em> and <em>max</em> attributes do?

A

Make it so that in a numbers or range type form, the user cannot submit it unless the number is in that range.

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

Where do the <em>min</em> and <em>max</em> attributes go?

A

In the <strong>input</strong> element

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

What do the <em>minlength</em> and <em>maxlength</em> attributes do?

A

They make the forum input have a maximum or minimum amount of characters

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

What does the <em>pattern</em> attribute do?

A

Checks how the text was provided - for example it can limit it to only be letters a-z

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