HTML Forms Day 4 Flashcards

1
Q

what are forms in HTML?

A

Forms in HTML allow for users/clients to interact with your application/website by inputting data. We create form elements using tags and then fill the form with a selection of different types of control elements.

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

what are popular attributes and values of the form element?

A

attributes: action, method a
values: Action takes a URI like “/example.com” and Method takes a HTTP request method of either GET or POST.

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

what are popular attributes and values of the input element?

A

attributes: type
values: button, checkbox, color, date, email, hidden, number, password, radio, submit, text, url: are popular values

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

what are other popular attributes and values of the input element?

A

attributes: checked, name, placeholder, value.
values: Checked is either true or false. Name, placeholder, and value will be equal to a string.

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

what are popular attributes and values of the label element?

A

attributes: for
values: the for attribute takes a string corresponding to the id attribute of an element being labeled.

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

what are popular attributes and values of the select element?

A

attributes: name, disabled
values: Disabled is either true or false. Name will be equal to a string.

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

what are popular attributes and values of the option element?

A

attributes: value, selected, disabled
values: Disabled/Selected is either true or false. Value is equal to a string.

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

what are popular attributes and values of the Textarea element?

A

attributes: maxlength, minlength, name, rows, cols, wrap, spellcheck
values: values depend on the attribute but are usually just a string of text or numbers.

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