<br />In HTML language, you can automatically add a title to the table through tags. In addition, the first row of the table is called the header, which can also be achieved through HTML tags. Basic syntax <TABLE> .... <TR> <TH>Title 1</TH><TH>Title 2</TH><TH>Title 3</TH><TH>Title 4</TH><TH>Title 5</TH> </TR> ........ </TABLE> Syntax Explanation: The BORDER attribute is used to define the width of the border line in pixels. <html> <head> <title>Comprehensive example of table markup</title> </head> <body> <table border="1" width="80%" bgcolor="#e8e8e8" cellpadding="2" bordercolor="#0000ff" bordercolorlight="7d7dff" bordercolordark="#0000a0"> <tr> Atlantic Division <th width="30%" colspan="2" valign="bottom">Central Division</th> <th width="30%" colspan="2" valign="bottom">Southeast Division</th> </tr> <tr> <td width="16%" align="center">Celtics</td> <td width="16%" align="center">76ers</td> <td width="17%" align="center">Piston</td> <td width="17%" align="center">Bull</td> <td width="17%" align="center">Heat</td> <td width="17%" align="center">Wizards</td> </tr> <tr> <td width="16%" align="center">Network</td> <td width="16%" align="center">Knicks</td> <td width="17%" align="center">Walker</td> <td width="17%" align="center">Knight</td> <td width="17%" align="center">Magic</td> <td width="17%" align="center">Bobcat</td> </tr> <tr> <td width="16%" align="center">Raptors</td> <td width="16%" align="center">Crossing the River</td> <td width="17%" align="center">Bucks</td> <td width="17%" align="center">Chicago</td> <td width="17%" align="center">Eagle</td> <td width="17%" align="center">Yao Ming</td> </tr> </table> </body> </html> Among them, <TH></TH> refers to the table header and title. |
<<: What are the differences between var let const in JavaScript
>>: Detailed explanation of replication configuration example between mysql containers
Application scenario: It is necessary to count th...
Table of contents Preface: 1. Install Docker 2. I...
Table of contents background analyze Data simulat...
Table of contents 1. Single database backup 2. Co...
Table of contents 1. Overview 1.1 Usage of queryS...
No way, no way, it turns out that there are peopl...
This article uses a jQuery plug-in to create an a...
Table of contents Design scenario Technical Point...
Table of contents Main topic 1. Install Docker on...
This article shares the specific code of js to ac...
Preface Since vue3.0 was officially launched, man...
Use the following command to create a container a...
The syntax for an outer join is as follows: SELEC...
Table of contents fold (reduce) Using for...of Us...
The Document Object Model (DOM) is a platform, a ...