HTML table

HTML table

HTML table

Table is defined by tag. Each table has a number of rows (defined by tags), and each row is divided into a number of cells (defined by
tags). The letters td refer to table data, the contents of data cells. Data cells can contain text, pictures, lists, paragraphs, forms, horizontal lines, tables, and more.

Table example

row 1, cell 1 row 1, cell 2
row 2, cell 1 row 2, cell 2

HTML table and border attributes

If the border attribute is not defined, the table will not display the border. Sometimes this is useful, but most of the time, we want the border to show.

Use the border attribute to display a table with a border:

Row 1, cell 1 Row 1, cell 2

HTML table header

The header of the table is defined using the

tag.

Most browsers will display the table header as bold and centered text:

  
Header 1 Header 2
row 1, cell 1 row 1, cell 2
row 2, cell 1 row 2, cell 2
举个例子: 无标题页

HTML table tag


##Tag

## Define the table cell

Define the header of the table Define the footer of the table

Continuing Learning
. -- defined

#
Header 1 Header 2
row 1, cell 1 row 1, cell 2
row 2, cell 1 row 2, cell 2

举个例子: 无标题页
submit Reset Code
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!