HTML Tables Flashcards

1
Q

Many websites on the internet display information like stock prices, sport scores etc. This data is naturally tabular in nature, meaning that a table is often the best way of presenting the days. How can you create tabular data on HTML? (Give an example of the weather forecast for the weekend)

A

< table >

Saturday
Sunday

< th scope=”row” >Temp< /th >
< td >73< /td >
< td >80< /td >

< /table >

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

Tables can be long and start to look unorganised/clunky, how can we organise a table into sections, so it’s easier to understand/read?

A

< table >
< thead >

Saturday
Sunday

< /thead >
< tbody >

< th scope=”row” >Temp< /th >
< td >73< /td >
< td >80< /td >

< /tbody >
< tfoot >

< /tfoot >
< tr >
< tf >Average Temp< /tf >
< td > < /td > 
< /tr >
< /table >
How well did you know this?
1
Not at all
2
3
4
5
Perfectly