HTML Forms & Tables Flashcards
What is the purpose of an HTML form element?
To collect information and data from users.
Give some examples of form control elements.
input, text area, radio buttons, checkboxes, drop-down boxes, submit buttons, etc.
Give three examples of type attributes for HTML < input > elements.
Radio, checkbox, drop-down boxes
Is an HTML < input > element a block element or an inline element?
An inline element.
Give some examples of key attributes for the input element.
type, value, id, name
What are the six primary HTML elements for creating tables?
< table >, < thead >, < tbody >,
< th >, < tr >,< td >
What purpose do the thead and tbody elements serve?
Both provide accessibility for screen readers.
Helps distinguish between sections of the table.
thead element: defines a set of rows that defines the head of the columns of the table
tbody element: confines a set of table rows that make up the body of the table
Give some examples of data that would lend itself well to being displayed in a table.
stocks, statistics data, timetable/schedules, etc