HTML Making complex table

Source: Internet
Author: User

Data analysis, generally need to display data, you need to use HTML to make complex tables. Complex tables are generally rowspan, colspan attribute values for TD.

In HTML <td> tags define standard cells in an HTML table.

(1) The rowspan attribute specifies the number of rows that a cell can span;

(2) The Colspan property specifies the number of columns that a cell can span.

1 <!DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" "Http://www.w3.org/TR/html4/loose.dtd ">2 <HTML>3 <Head>4     <Metahttp-equiv= "Content-type"content= "text/html; charset=utf-8">5     <title>Complex tables</title>6 </Head>7 <Body>8     <Center>9         <Tablewidth= "20%"Border= "1">Ten             <TR> One                 <th>Website</th> A                 <thcolspan= "2">Statistical information</th>    <!--colspan= "2" placeholder, indicating that this column occupies 2 columns - -             </TR> -             <TR> the                 <TDrowspan= "3">Qihoo 360</TD>    <!--rowspan= "2" placeholder, indicating that this column occupies 3 rows - -                 <TD>http://hao.360.cn/</TD> -                 <TD>11</TD> -             </TR> +             <TR> -                 <TD>http://sh.qihoo.com/</TD> +                 <TD>22</TD> A             </TR> at             <TR> -                 <TD>http://video.so.com/</TD> -                 <TD>33</TD> -             </TR> -         </Table>                                                                                                                                                                                                            -     </Center> in </Body> - </HTML>

Show:

RowSpan, colspan can be understood as a placeholder. The number of rows and columns.

HTML Making complex 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.