HTML 5 Table

Source: Internet
Author: User

<! DOCTYPE html>

<meta charset= "Utf-8" >


<body>

<table border= "1" >
<caption> Entire table header </caption>
<!--Border table border--

<!--
Table Definition Tables
Caption Defining table Headings
Th definition Table Header
TR defines rows for a table
TD defines the cells of the table
Thead Defining a table header
Tbody Defining Table Bodies
Tfoot define the footer of a table
Col defines column properties for a table
-

<tr>
<!--table Head th-->
<th>1</th>
<th>2</th>
<th>3</th>

</tr>
<tr>
<td> Cell 1</td>
<td> Cell 2</td>
<td> Cell 3</td>
</tr>
<tr>
<td> Cell 1</td>
<td> Cell 2</td>
<td> Cell 3</td>
</tr>

</table>

<table border= "1" >
<tr>
<td>
Table 1
</td>
<td>
Table 2
</td>
</tr>
<tr>
<td>
<ul>

<li> Apple </li>
<li> Apple </li>
<li> Apple </li>
</ul>
</td>
<td>
I want to eat
</td>
</tr>

</table>

<table border= "1" cellpadding= "cellspacing=" background= "picture.jpg" >
<!--cellpadding cell content and border distance--
<!--distance between cellspacing cells--
<tr>
<td>444</td>
<td>444</td>
<td>444</td>
</tr>

<tr>
<td>4444</td>
<td>4444</td>
<td>4444</td>
</tr>

</table>
</body>

HTML 5 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.