In fact, many people will say that I see the statement that I should never use forms, but this is absolutely wrong! This suggestion is just for using HTML tables to define the layout of a web page, but tables are perfect for convenient arrangement of rows and columns of data information, and if you have to display table column data on a page, you have to use them! why not? However, in this case some people ignore the existence of certain HTML tags used for tables and do not know how to use them correctly.
HTML has 10 table-related tags. Here is a list with an introduction, but first, the document should be correctly defined below HTML 4.01/XHTML 1 or HTML 5:
A basic table structure is as follows:
It contains a title, head, body and bottom. The correct order of HTML elements is:
You can also use <col> and <colgroup> to define columns of tables or group columns:
Here is a correct example of the table structure:
Copy the code