tables Flashcards
what is a table?
a table is a way of displaying information in a grid format for example a timetable
what is the basic table structure?
(table) (tr) (td) data (/td) (/tr) (/table)
what is the table element?
the table element is used to create a table, the contents of the table are written out using rows
what is the (tr) element?
the (tr) element is used to create a row within a table. there can be multiple table rows within a table
what is the (td) element?
the (td) element is used to insert data into the table. stands for table data
what is the (th) element?
the (th) element is the table heading and is used to provide a heading for each column
when creating a long table with lots of data what 3 elements can we use to help separate the information to make it more user friendly?
(thead) (tbody) (tfoot)
what is the (thead) element used for?
the (thead) is used to add headings at the top of a table
what is the (tbody) element?
the (tbody) is used to add data into the table and serves as a main section of the table
what is the (tfoot) element?
the (tfoot) is used to provide a footer at the bottom of a table, usually where results are stored