HTML: Tables and Forms Flashcards

1
Q

Define Table

A

Tables are structured sets of data made up of rows and columns.

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

Write a Table Element with 3 rows and 3 columns using row, data, and header cells.

A

header r1c1
header r1c2
header r1c3

 data r2c1
 data r2c2
 data r2c3

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

Purpose of and in tables?

A

For best practice/semantics and accessibility.

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

how do you write a table data cell that takes more than 1 row? more than 1 column?

A

Header info

Header info Col

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

What is a form element?

A

Form element itself is a shell or container that does not have any visual impact but is filled with inputs, checkboxes, buttons, etc.

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

Write an empty form tag with attribute. Also, what does the attribute do?

A

*Action attribute specifies where the form data should be sent.

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

What is input element?

A

Input is a common form control that includes many different input types. Does not include a closing tag.

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

What are common input type attributes?

A

text, password, color, email, radio, range, number, submit, time, etc.

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

Write a text input with a placeholder.

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

Create a label element

A

Animal?

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

What attributes are used for labels?

A

For - attributed to labels, and matches the ‘ID’ attribute on input.
Name - used to specify data that is submitted.

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

Write a submit button tag.

A

submit

will not submit

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

Define the name attribute

A

The name of the input is referring to the value when the data is sent to server.

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

Write a checkbox input element for TOS.

A

TOS

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

Write a radio button input element for shirt size small/medium.

A

small

medium

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

Write a select input element for gender preference.

A

Gender Identity:

 --Choose--
 Male
 Female
 Other
17
Q

Write a range input element for volume; 0-50 incremented by 3 and preset to 10.

A

Set Volume Level:

18
Q

Write a text area input element for comments.

A

Leave a comment:
All feedback is appreciated!

*can use placeholder as well.

19
Q

Define Required attribute

A

Required attribute is a form validation that makes certain inputs required prior to submission ie for password or email.

20
Q

Define minlenght and maxlength attribute

A

min and maxlength attribute can be used to require specifications for input types.

*min and max is used for numeric values such as range, number input types.

21
Q

Define Pattern attribute

A

For instance requiring a password to have a lower case, upper case, special character, etc.