Tham khảo tài liệu 'brilliant html & css- p3', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | Specifying a table s header body and footer You can specify a table s header body and footer using the thead thead tags tbody tbody tags and tfoot tfoot tags. The meanings of the three tags are as you might imagine thead thead specifies the header tbody tbody specifies the table s body and tfoot tfoot specifies the the table s footer. Task steps Q Open one of the previous tables or create a new one. Q Add the tfoot tfoot tags between the opening tabie tag and the table s first tr tag. 14 B In the table footer add a table row. In the table row add a table cell with a colspan of three. Add some text to the cell. 14 After the table footer add thead thead tags. Add a table row and insert a table data cell with a colspan of three. 20 Q Save and display in your browser. 7 Table Table related tags covered in this task Tag Function thead thead Specifies table header. tbody tbody Specifies table body. tfoot tfoot Specifies table footer. Cross reference See tasks_html task_html_table_various task_html for completed example. 1 DOCTYPE HTML PUBLIC - W3C DTD HTML Transitional EN 3 http TR html4 4 html head title Tables Footers 5 Table Body and Column 6 Groups title head 7 body 8 p Sorry I m so ugly but the author 9 doesn t want to waste your time by 10 showing you deprecated HTML formatting 11 tags when you can use CSS. p 12 table rules cols frame border 13 width 50 14 tfoot tr td colspan 3 small 15 Illustrating a table 16 footer. small td tr tfoot 17 caption Column Rules Footer Body and 18 Column Grouping caption 90 19 colgroup span 2 20 thead tr td colspan 3 A table 21 header. td tr thead 22 tbody 23 tr td pound 300 td td pound 24 200 td td pound 200 td tr 25 tr td pound 50 td td pound 30 td 26 td pound 200 td tr 2J tr td pound 300 td td pound 28 200 td td pound 200 td tr 29 tbody 30 table 31 body 32 html Specifying a table s header body and footer cont. HTML tables 91 5 Adding table dividing lines using rules Task steps n Open the