C777 Unit 5: Forms

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/66

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 12:58 AM on 4/21/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

67 Terms

1
New cards

Which HTML tag is used to create an HTML form for user input?

2
New cards

autocomplete

EXAMPLES:

Which attribute specifies whether a form or an input field should allow the browser to predict the value?

3
New cards

novalidate

EXAMPLE:

Which attribute specifies that the form input should not be validated when submitted?

4
New cards

action

EXAMPLE:

Which attribute defines the action to be performed when the form is submitted?

5
New cards

enctype

EXAMPLE:

Which attribute specifies how form input should be encoded when submitted to the server?

6
New cards

method

EXAMPLE:

Which attribute specifies the HTTP method to be used when submitting the form data?

7
New cards

target

EXAMPLE:

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

8
New cards

list

EXAMPLE:

Which attribute refers to pre-defined options contained in a datalist?

9
New cards

min and max

EXAMPLE:

Which attributes define the minimum or maximum value for an element?

10
New cards

maxlength

EXAMPLE:

Which attribute defines the maximum length of input allowed in an field?

11
New cards

multiple

EXAMPLE:

Which attribute allows the user to enter more than one value in the element?

12
New cards

pattern

EXAMPLE:

Which attribute checks input into the field against a regular expression, which is a pattern of characters for use in pattern-matching and search-and-replace functions?

13
New cards

placeholder

EXAMPLE:

Which attribute provides a hint to the user of the input value expected in the field?

14
New cards

required

EXAMPLE:

Which attribute requires input in the field before the form can be submitted?

15
New cards

user input validation

What do we call the process that tests data input to verify whether the input follows a specified format or meets minimum requirements for character number or type?

16
New cards

inline validation

What do we call the process in which the user input in each field of a form is validated before the form is submitted?

17
New cards

Which pattern ensures the user enters a three digit country code?

18
New cards

Which pattern ensures the user enters a date formatted as 1/1/2021?

19
New cards

Which pattern ensures the user enters a valid email address?

20
New cards

Which pattern ensures the user enters latitude/longitude?

21
New cards

Which pattern ensures the user enters a price?

22
New cards

Which pattern ensures the user enters a URL beginning with https?

23
New cards

Which input type displays as round buttons in a group of mutually exclusive pre-determined choices?

24
New cards

Which HTML element submits a user's completed form data to the server for processing?

25
New cards

Which HTML element resets the form data to its initial value?

26
New cards

Which HTML element creates a clickable button that does not directly affect form data and allows text and images to be placed within its tags?

27
New cards

Which input type displays as square buttons in a group of pre-determined choices from which the user can select more than one choice?

28
New cards

Which element creates a rectangular field that can expand upon user interaction and allow users to select one or more pre-determined choices?

29
New cards

pogo-sticking

What occurs when users must submit and resubmit a form until it validates?

30
New cards

Which input type displays as rectangle field into which users can type alphanumeric characters of their choice?

31
New cards

Which input type allows the user to choose colors?

32
New cards

Which input type allows the user to enter a date (without time zone) using a drop-down date-picker calendar?

33
New cards

Which input type allows the user to choose a date and time with a GMT time zone?

34
New cards

Which input type allows the user to choose a date and time with a local time zone?

35
New cards

Which input type allows the user to enter an e-mail address?

36
New cards

Which input type allows the user to choose a date using the month and year (without time zone)?

37
New cards

Which input type allows the user to enter rational integers or float values?

38
New cards

Which input type allows the user to enter numbers using a slider control?

39
New cards

Which input type allows the user to enter text for a search query?

40
New cards

Which input type allows the user to enter a phone number?

41
New cards

Which input type allows the user to enter a time (without time zone)?

42
New cards

Which input type allows the user to enter a URL, such as an http://, ftp:// or mailto: address?

43
New cards

Which input type allows the user to choose a date using the week and year (without time zone)?

44
New cards

Which element specifies a list of pre-defined choices for an element?

45
New cards

Which element adds security to a form through asymmetric encryption by creating a key-pair generator field in the form?

46
New cards

Which element displays the result when a calculation is performed?

47
New cards

autofocus

EXAMPLE:

Which attribute applies focus on the element when the page loads?

48
New cards

disabled

EXAMPLE:

Which attribute disables an element?

49
New cards

for

EXAMPLE:

Which attribute specifies the IDs of elements whose values were used?

50
New cards

form

EXAMPLE:

Which attribute specifies the form(s) on the page in which the element appears?

51
New cards

name

EXAMPLE:

Which attribute specifies a name for the element that can be used to reference it?

52
New cards

wrap

EXAMPLE:

Which attribute specifies whether text submitted in a form field is to be wrapped?

53
New cards

Which element allows you to add a caption for a group of items created by the

element?

54
New cards

Which element is used to group elements so that related fields are placed together in a form?

55
New cards

Which element enables you to add a label to an input element in a form?

56
New cards

The browser will use the default type of text.

When you use the element to create form fields, what occurs if you neglect to include the type attribute?

57
New cards

The browser will degrade to a standard text box.

What occurs if an input type is not supported by a browser (example: search)?

58
New cards

Some users may become frustrated if they need to submit and resubmit a form until it validates.

What is a disadvantage of waiting to validate user input until after the user completes the form?

59
New cards

Users can resolve errors as they fill out each form field and submit the completed form just once.

What is the benefit of inline validation?

60
New cards

truthful information

What can validation techniques not check for?

61
New cards

The required attribute

This JavaScript code is the equivalent of which HTML5 attribute?

function validateForm(){

var x = document.forms["myForm"]["number"].value;

if (!x){alert("Please enter a phone number");

return false;}

}

62
New cards

The pattern attribute

This JavaScript code is the equivalent of which HTML5 attribute?

function validateForm(){

var x = document.forms["myForm"]["email"].value;

var atpos=x.indexOf("@");

var dotpos=x.lastIndexOf(".");

if (atpos < 1 || dotpos < atpos+2 || dotpos + 2 >= x.length){

alert("Please enter a valid e-mail address");

return false;}

}

63
New cards

a script

Calculations in a Web page form are usually performed by what?

64
New cards

differently

Do HTML5 input types display the differently or the same in various browsers?

65
New cards

RSA

What is the default security algorithm used with the HTML5 element?

66
New cards

A private key and a public key

What two keys are created by the HTML5 element?

67
New cards

JavaScript

Prior to HTML5, what did Web developers use to conduct inline validation in HTML forms?