HTML Tables and Forms Flashcards

1
Q

What is the form element used for?

A

Used to create an HTML form for user input.

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

What does the action attribute specify in an HTML form?

A

Specifies the URL where the form data should be sent.

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

What are the two most common HTTP methods specified by the method attribute?

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

Fill in the blank: The _______ element is used to create an input field for user input.

A

input

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

What does the type attribute specify in the input element?

A

Specifies the type of input field.

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

What is the purpose of the placeholder attribute in an input field?

A

Shows a hint to the user to indicate what to enter.

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

What does the value attribute do in an input element?

A

Specifies the value of the input.

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

What is the use of the size attribute in an input field?

A

Defines the number of characters that should be visible.

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

What does the min attribute specify in number input types?

A

Specifies the minimum value allowed.

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

What does the max attribute specify in number input types?

A

Specifies the maximum value allowed.

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

What is the purpose of the minlength attribute?

A

Specifies the minimum number of characters required.

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

What does the maxlength attribute do in an input field?

A

Specifies the maximum number of characters allowed.

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

What is the function of the required attribute in an input field?

A

Specifies that the input field must be filled out before submitting the form.

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

What does the disabled attribute do in an input element?

A

Specifies that an input field should be disabled.

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

What is the purpose of the readonly attribute in an input field?

A

Specifies that an input field is read-only.

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

What is the label element used for in HTML forms?

A

Used to create a label for an input field.

17
Q

What attribute of the label element is used to specify which input field it is associated with?

18
Q

What does the button element create?

A

Creates a clickable button.

19
Q

What are the three types of buttons defined by the type attribute?

A
  • submit
  • reset
  • button
20
Q

What is the fieldset element used for?

A

Used to group related inputs together.

21
Q

What does the legend element do?

A

Adds a caption to describe the group of inputs.

22
Q

What is the focused state of an input field?

A

The state of an input field when it is selected by the user.

23
Q

What is the table element used for?

A

Used to create an HTML table.

24
Q

What element is used to group the header content in an HTML table?

A

Table Head (thead)

25
What does the Table Row (tr) element create?
Creates a row in an HTML table.
26
What is the purpose of the Table Header (th) element?
Used to create a header cell in an HTML table.
27
What is the function of the Table body (tbody) element?
Groups the body content in an HTML table.
28
What does the Table Data Cell (td) element create?
Creates a data cell in an HTML table.
29
What is the role of the Table Foot (tfoot) element?
Groups the footer content in an HTML table.
30
What does the caption element do in an HTML table?
Adds a title to the table.
31
What does the colspan attribute specify?
Specifies the number of columns a table cell should span.
32
What is an HTML validator?
A tool that checks the syntax of HTML code to ensure it is valid.
33
What is the purpose of a DOM inspector?
Allows you to inspect and modify the HTML structure of a web page.
34
What are Devtools?
A set of web developer tools built into the browser for debugging and analyzing web pages.