Tag composition of table A table in HTML is a tag with <table> as the main body, and the browser will interpret the tag as a table. Rows in the table are defined using the <tr> tag. The <tr> tag is a subclass of the <table> tag. Setting several <tr> tags can divide the table into several rows. The <td> tag is used to define the columns of the table. The <td> tag is a subclass of the <tr> tag. Therefore, each row needs to set a corresponding number of <td> tags to divide the columns to form a complete table.
The tag combination relationship of the table is:
XML/HTML Code Copy content to clipboard