3/15/2022 Flashcards

1
Q

What is the purpose of an HTML form element?

A

To get data from users.

or

The form element is used to hold form controls and to hold information (action and method attributes) that is used to send to the server where the form is being sent to.

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

Give five examples of form control elements

A

Text input, password input, text area, radio buttons, and checkboxes.

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

Give three examples of type attribute values for HTML input elements.

A

text, password, and radio

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

Is an HTML input element a block element or an inline element?

A

Inline (or inline-block)

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

What are the six primary HTML elements for creating tables?

A

table, tr, td, th, thead, and tbody

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

What purpose do the thead and tbody elements serve?

A

The thead HTML element defines a set of rows defining the head of the columns of the table.
The tbody HTML element encapsulates a set of table rows, indicating that they comprise the body of the table.

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

Give two examples of data that would lend itself well to being displayed in a table.

A

Financial reports, TV schedules, and sports reports

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

What are the names of the individual pieces of a CSS rule?

A

Selector and declaration

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

In CSS, how do you select elements by their class attribute?

A

Put a “.” before the class name or value

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

In CSS, how do you select elements by their type?

A

Just type in the type name or element name

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

In CSS, how do you select an element by its id attribute?

A

Type in a “#” before the id name.

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

Name three different types of values you can use to specify colors in CSS.

A

RGB, hex names, color names

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

What CSS properties make up the box model?

A

Border, margin, and padding

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

Which CSS property pushes boxes away from each other?

A

Margin

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

Which CSS property add space between a box’s content and its border?

A

Padding

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