HTML Table-table

Source: Internet
Author: User

Form

The table is defined by the <table> tag.

Each table has several rows (defined by the <tr> tag) and each row is split into several cells (defined by the <td> tag).

The letter TD refers to the table data, which is the contents of the data cell.

Data cells can contain text, pictures, lists, paragraphs, forms, horizontal lines, tables, and so on.

For example, to draw the following table:

Analysis: 1. Analyze rows, each line is a TR label

2. Starting with the first line, look at a few cells per row, several cells are several TD labels

3. If the space is 1 rows 1 columns, omit the number of rows, directly for <td></td>.

The code is as follows

1     <Body>2         <Tablewidth= "The "Height= "The "Border= "2">3             <!--Line 1th -4             <TR>5                 <TDcolspan= "4"bgcolor= "Aqua"></TD>6             </TR>7             <!--Line 2nd -8             <TR>9                 <TDrowspan= "4"bgcolor= "Antiquewhite"></TD>Ten                 <TDcolspan= "3"bgcolor= "Antiquewhite"></TD> One             </TR> A             <!--Line 3rd - -             <TR> -                 <TDrowspan= "3"bgcolor= "Aquamarine"></TD> the                 <TDcolspan= "2"bgcolor= "Aquamarine"></TD> -             </TR> -             <!--Line 4th - -             <TR> +                 <TDrowspan= "2"bgcolor= "Bisque"></TD> -                 <TDbgcolor= "Bisque"></TD> +             </TR> A             <!--Line 5th - at             <TR> -                 <TD></TD> -             </TR> -         </Table> -     </Body>

2018-07-30

HTML Table-table

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.