3/15/2022 Flashcards
What is the purpose of an HTML form element?
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.
Give five examples of form control elements
Text input, password input, text area, radio buttons, and checkboxes.
Give three examples of type attribute values for HTML input elements.
text, password, and radio
Is an HTML input element a block element or an inline element?
Inline (or inline-block)
What are the six primary HTML elements for creating tables?
table, tr, td, th, thead, and tbody
What purpose do the thead and tbody elements serve?
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.
Give two examples of data that would lend itself well to being displayed in a table.
Financial reports, TV schedules, and sports reports
What are the names of the individual pieces of a CSS rule?
Selector and declaration
In CSS, how do you select elements by their class attribute?
Put a “.” before the class name or value
In CSS, how do you select elements by their type?
Just type in the type name or element name
In CSS, how do you select an element by its id attribute?
Type in a “#” before the id name.
Name three different types of values you can use to specify colors in CSS.
RGB, hex names, color names
What CSS properties make up the box model?
Border, margin, and padding
Which CSS property pushes boxes away from each other?
Margin
Which CSS property add space between a box’s content and its border?
Padding