1.3.7 - Getting and Setting Form Values Flashcards

1
Q

What is a

< fieldset >

A

Group elements in a form

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

What is a

< legend >

A

Defines a legend for the fieldset element

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

What is a

< label >

A

Defines a label for an input element. The for attribute of the label tag should be equal to the id attribute of the related element or bind them together

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

What is a

< abbr >

A

Defines an abbreviation or an acronym, like “Mr.” or “Dec”… are shortened versions of something else. Can give useful information to browsers, translation systems, and search engines.

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

What is a

< input >

A

Specifies an input field where the user can enter data. Used within form elements to declare input controls that allow users to input data;

can vary depending on the type attribute

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

What is a

< select >

A

Used to create a drop-down list

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

What is a

< option >

A

Inside the select element define the available options in the list

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

What is a

< textarea >

A

Defines a multi-line text input control, can hold an unlimited number of characters, and the text renders in a fixed-width font (usually Courier)

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

What is the type attribute in an input element?

A

The type attribute specifies the type of input element to display. The default type is text

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

What is a type button attribute

A

Defines a clickeable button

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

Please define a checkbox input element

A

input type=”checkbox” name=”car” value=”volvo”

input type=”checkbox” name=”car” value=”audi”

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

What is a date type attribute

A

Defines a date control (year, month and day ( no time ) )

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

what is a datetime-local type attribute

A

Defines a date and time control

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

what is an email type attribute

A

Defines a field for an e-mail address

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

What is a file type attribute

A

Defines a file-select field and a “browse…” button ( for file uploads )

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

What is a hidden type attribute

A

Defines a hidden input field

17
Q

What is a type image attribute

A

Defines an image as the submit button

18
Q

What is the password type attribute

A

Defines a password

19
Q

What is a input type radio buton

A

Defines a radio button

20
Q

What is a input type range

A

Defines a control for entering a number whose exact value is not important (like a slider control. Default range is from 0 to 100

21
Q

what is a input type submit

A

Defines a submit button

22
Q

What is a input type tel

A

Defines a field for entering a telephone number

23
Q

What is a input type time field

A

Defines a control for entering a time ( no time zone )

24
Q

what does:

document.forms

A

Returns a collection of the form elements within the current document.

25
Q

How can we get a form by it´s Id

A

document.getElementById( ‘id-of-form’ );

26
Q

what happens when we get with

document.getElementsByName( ‘name-of-form’);

A

Get an element by name, returns a collection/kind of array with the given name.

27
Q

How can we loop through from elements

A
28
Q

How can we select the names and values of a form

A
29
Q

How can we set a new value of a form

A
30
Q

How can we hack a readonly field

A
31
Q

On a checkbox, the default value get preserve?

A