Unit 3.1 Forms Flashcards

Creating Interactive Forms

1
Q

Forms can be nested inside other forms TRUE or FALSE

A

FALSE

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

Define the “action” attribute (forms)

A

The “action” attribute specifies the web address of a program that processes the information submitted via form

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

Define the “method” attribute

A

The “method” attribute specifies the HTTP method that the browser should use to submit the form

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

Define the “form” element

A

The “form” element represents a document section containing interactive controls for submitting information

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

Define the “input” element and the two main attributes used

A

The “input” element is a self-closing tag that creates many different types of form controls. The “type” attribute specifies what kind of form control is to be rendered. The “name” attribute is submitted with form data so that the server-side code can parse the information.

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

Define “textarea” element

A

The “textarea” element accepts multiple lines of text from the user. Most browers will render with widget to resize the box.

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

Define the “Button” element. What types do this element accept?

A

The “button” element will render a clickable button. The type’s it accepts are sumbit, reset and button.

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

Define “label” element

A

The “label” element helps organize forms by assigning text to a given form control. This text helps the user understand what kind of data they should add to each form. It also programmatically associates the label to a form control.

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

What does the “for” attribute do? (label)

A

When labeling, the “for” attribute assigns the given value to be associated with an id attribute that matches.

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

Define “fieldset” element

A

The “fieldset” element wraps multiple form elements into common groups. This helps organize a form and makes it easier for users to understand.

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

Define “legend” element

A

Similar to the label element, but instead of labeling a form control this labels a field set. Provides helpful context for users filling out a form.

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

Define “span” element

A

The “span” element is a generic container with no particular meaning. Commonly used to style in conjunction with class and style attributes. This is also a inline level element.

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

Define “select” element

A

The select element renders a drop-down menu that contains selectable options. This type of form control is ideal for scenarios where the user must choose one option from a preset list of 5 or more choices.

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

Define “option” element

A

The option element represents one of the choices that a user can choose in a select menu. It should always be nested inside of a select element.

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

Define “optgroup” element

A

The optgroup element wraps one or more option elements and helps to create logical groups. The label attribute specifies the text that the optgroup should display above the nested options.

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

The “value” attribute is optional though should be considered mandatory for:

A

“checkbox”, “radio”, and “hidden”