HTML Tables Flashcards
How do you create a table
With the < table > element
How do you add rows to a table
Using the table row element < tr >, just add the opening and closing tag and it will create rows
How do you create cells of data in tables?
By adding table data in the table rows with the < td > sign
How to add a heading to a table
Put the table heading, < th >, tab in the table row element
What does scope do?
Specifies if the table heading is for the row or column (write col for column)
What does deprecated mean?
The code was used in the past but is not used now
How to add a border to a table
A border is added with CSS, using the code:
table, td {
border; 1px solid black
}
How do you span columns?
In table data, use the colspan attribute and set it to the amount of columns it spans
How to span a row
Same as spanning a column but use rowspan instead
What is table body used for?
To section off the code of the table when it gets really long
How do you section off the head of a table
with the < thead > element
What does CSS stand for?
Cascading Style Sheets
What is CSS used for?
Styling HTML content