HTML5- Form and Multimedia Flashcards

1
Q

What is the full form of HTML?

A

Hyper Text Markup Language

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

Give two examples of web browsers

A
  • Google Chrome
  • Safari
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is HTML?

A

HTML is a language in which you can make web pages on the Internet and view them using a web browser

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

What are HTML documents made of?

A

HTML documents are made up of text content and special codes known as tags.

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

What is the function of text content and tags?

A

They tell web browsers how to display the content

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

What is input control?

A

– An INPUT CONTROL is a type of input mechanism on a form.
– A form may contain several different types of input controls classified as DATA or TEXT input controls.

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

What is data input control?

A

A data input control can be a:
- Radio button (RADIO)
- Check box (CHECKBOX)
- Submit button (SUBMIT)
- Reset button (RESET)
- Selection menu (SELECT)

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

What is text input control

A

A TEXT input control allows the user to enter text through the following:
> Text box (TEXT) -
for small amount of text
> Textarea box (TEXTAREA) -
for large amount of text
> Password box (PASSWORD) -
for entering a password

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

What is text control?

A

A text control creates a text box that is used for a single line of input

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

What are the attributes of text control?

A

The text controls have two attributes:
1. MAXLENGTH: determines the number of characters that are displayed on the form.
2. SIZE: specifies maximum length of the input field

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

What is PASSWORD control?

A
  • creates a text box used for single line of input, except that the characters entered into the field can appear as asterisks or bullets.
  • a password text box holds the password entered by a visitor,
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is RADIO control?

A
  • limits the web page visitor to only one choice from a list of choices.
  • each option is preceded by a radio or option button, which typically appears as a circle
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is CHECKBOX control?

A
  • allows a web page visitor to select more than one choice from a list of choices.
  • each choice in a checkbox list can either be on or off
  • by default, all checkboxes are deselected.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is SELECT control?

A
  • creates a selection menu from which the visitor selects one or more choices.
  • this prevents the visitor from having to type information into a text or textarea field.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is TEXTAREA control?

A
  • creates a field that allows multiple lines of input.
  • it is useful when detailed input is required from or desired by a web page visitor.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is SUBMIT button?

A
  • send the information to the appropriate location for processing.
  • a web page form must include a Submit button.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What is RESET button?

A
  • clears any input that was entered in the form. resetting the input controls back to the default.
  • a web page form must also include a reset button
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

What is a FORM?

A
  • we can use forms to collect information from people who visit our websites.
  • a form has input fields for users to enter information and limits choices to valid options to avoid incorrect data entry.
  • forms provide an easy way to collect required information.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

What are the three important parts of a web page?

A

Web page forms have three important parts
i. a <FORM> tag
ii. form input elements
iii. a SUBMIT button

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

While making a form, why do we write HTML?

A

While designing and building a form, you write HTML to define the different objects that allow users to type or select information.

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

What does these objects include?

A

These objects can include text fields, radio buttons, checkboxes and other options.

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

What should all forms also include?

A

All forms should include a SUBMIT BUTTON for sending the data to a web server for processing

23
Q

When should we set up a form?

A

We must set up a form before we can add information to it.

24
Q

What should we do in order to set up a form?

A

To set up a form, we need to specify two important information, i.e. METHOD and ACTION property of <FORM> tag.

25
Q

What is METHOD property?

A

METHOD property tells the form how to transfer the data to the form processor, which is your CGI script or e-mail address.

26
Q

What values can be assigned to METHOD property?

A

We can assign either of the two values to the METHOD property, which are: GET and POST.

27
Q

What is GET value?

A
  • if the METHOD property of FORM is set to GET, then the data in the form is given to the form processor in the form of environment variable (QUERY_STRING).
  • if no value is given to METHOD property of <FORM> tag , the default value is set to GET.
28
Q

What is POST value?

A

If the METHOD property of FORM is set to post, then the data in the form is given to the form processor as the standard input to the program.

29
Q

What is ACTION property?

A

ACTION property of the <FORM> tag tells what action the form should take when the user presses the SUBMIT button.

30
Q

What should we do if we would like to receive the e-mail without an attachment in a text form? OR
What should we do if we would want to receive the information as text in our e-mail?

A

In the <FORM> tag, type ENCTYPE= “TEXT/PLAIN”

31
Q

ACTION= ‘?’, what should we replace ‘?’ with?

A
  1. With the location of your CGI script on your web server that will process the information submitted by your form.
  2. with the e-mail address, if we would like to get the information to it.
32
Q

What is the purpose of a text box?

A

> > A text box allows users to enter a line of text.
text boxes are normally used for entering names and addresses

33
Q

What is a DEFAULT TEXT VALUE?

A

A DEFAULT TEXT VALUE appears in the text box when the user views the form.

34
Q

What is the purpose of default text value?

A

We can use DEFAULT VALUES to:
- display information about the type of data required
- give users an example of the type of data you are looking for.
- show a popular choice or response

35
Q

What should we do to specify a default?

A

Add the VALUE attribute to the <input></input> tag

36
Q

What is the purpose of a password box?

A

A password bow allows a reader to enter confidential or secret information, such as credit card number and password.

37
Q

How does a password box differ from a standard text box?

A

It differs from a standard text box in a manner that when a user types in any character, an asterisk or a bullet appears for each character typed on screen.

38
Q

What is the purpose of large text area?

A

A large text area allows visitors to enter several lines of input. It is ideally used for getting comments and feedbacks from the visitors.

39
Q

What is the purpose of READONLY attribute?

A

If we want to display default text in a text area and do not want users to move or edit the text, we can use the READONLY attribute.

40
Q

How can we use the READONLY attribute?

A

If we want to use a large text area to explain something about our form or offer detailed instructions, we can place the READONLY attribute without assigning a value within the <textarea> tag.</textarea>

41
Q

What is the purpose of checkboxes?

A

Checkboxes allow visitors in a form to choose one or more options.

42
Q

What do we need to specify while creating checkboxes?

A

While creating checkboxes, we need to specify the following information:
1. We need to specify a word that describes the group of checkboxes. This is done using the NAME attribute.
2. We need to specify a word that describes each checkbox. This is done using the VALUE attribute.
3. We need to specify the text which appears beside each checkbox on your web page.

43
Q

What is the purpose of writing checked in the input tag while creating checked boxes/ radio buttons?

A

If we want the checkbox to be selected automatically, we can write CHECKED in the input tag

44
Q

What is the CECKED attribute?

A

A CHECKED attribute can be used while making a web page to show one radio button/checkbox in the group as selected, by default.

45
Q

What is the purpose of radio buttons?

A

Radio buttons in a form allow the users to select only one of the several options.

46
Q

What do we need to specify while creating radio buttons?

A

While creating radio buttons, we need to specify the following information:
1. We need to specify a word that describes the group of radio buttons. This is done using the NAME attribute.
2. We need to specify a word that describes each radio button. This is done using the VALUE attribute.
3. We need to specify the text which appears beside each radio button on your web page.

47
Q

Why should we need to make sure that all the radio buttons in a set have the same NAME attribute?

A

> > When radio buttons have different NAME attributes, the browser treats them as different radio button sets.
This means, the users is able to turn on more than one of them at a time by clicking.
Make sure all the radio buttons in a set have the same NAME attribute to avoid this.

48
Q

What is the purpose of list box (menu)?

A

– A list box offers visitors a list of options to choose from.
– Normally, list boxes are used to display lists of products, states, age groups, etc.

49
Q

What do we need to specify while creating list box?

A

While creating radio buttons, we need to specify the following information:
1. We need to specify a word that describes the list box. This is done using the NAME attribute.
2. We need to specify a word that describes the content. This is done using the VALUE attribute.
3. We need to specify the text which appears for each list box option on your web page.

50
Q

What is the purpose of writing selected in option tag while creating a list box (menu)?

A

If we want a list box option to be selected automatically, we use the CHECKED attribute in the OPTION tag.

51
Q

How to create a DROP-DOWN list?

A

> > Type the number of list box entries as the the SIZE attribute value.
This makes the list box appear as a rectangular box that displays all the items in the list.
If the list box is long, it may take up more room on the form than you want, making users scroll to view the selections.
If you prefer to save room on your form, keep the list box size as 1. This creates a DROP-DOWN list.

52
Q

What is the purpose of SUBMIT button?

A

A SUBMIT button allows the users to click and send the information they entered in our form to our mail server or our e-mail.

53
Q

What happens when the user clicks the SUBMIT button?

A

When the user clicks the SUBMIT button, the data in the form is processed and sent to the destination specified in the form tag

54
Q

What is the purpose of RESET button?

A

A RESET buttons allows the user to clear the information they entered in our form and reset the form to its original setting.