General - Forms and HTML5 elements Flashcards

1
Q

Q: Name 3 HTML5 form input types.

A

A: email, range, date, color, etc.

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

Q: Why are HTML5 inputs helpful for validation?

A

A: They reduce the need for JavaScript to check user input (e.g., type=”email” auto-checks format).

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

Q: What is the on change event used for?

A

A: Trigger JavaScript when a form input’s value changes.

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