By default, the border of the table is 0, and we can set border lines for the table.
Basic syntax<TABLE BORDER=VALUE>
Syntax explanationDefine the width of the border line through the BORDER property, in pixels.
File example: 10-2.htmSets the width of the border line.
01 <!-- ------------------------------ -->
02 <!-- File example: 10-2.htm -->
03 <!-- File description: Set the border width of the table-->
04 <!-- ------------------------------ -->
05 <HTML>
06 <HEAD>
07 <TITLE>Set the border width of the table</TITLE>
08 </HEAD>
09 <BODY>
10 <H1>Mainstream web design software</H1>
11 <TABLE BORDER=1>
12 <TR>
13 <TD>Web Image Software</TD>
14 <TD>Fireworks</TD>
15 </TR>
16 <TR>
17 <TD>Web page production software</TD>
18 <TD>Dreamweaver</TD>
19 </TR>
20 <TR>
21 <TD>Web animation software</TD>
22 <TD>Flash</TD>
23 </TR>
24 </TABLE>
25 <TABLE BORDER=10>>
26 <TR>
27 <TD>Web Image Software</TD>
28 <TD>Fireworks</TD>
29 </TR>
30 <TR>
31 <TD>Web page production software</TD>
32 <TD>Dreamweaver</TD>
33 </TR>
34 <TR>
35 <TD>Web animation software</TD>
36 <TD>Flash</TD>
37 </TR>
38 </TABLE>
39 </BODY>
40 </HTML>
Document descriptionLines 11 to 24 are a complete table with a border of 1 pixel, and lines 25 to 38 are the second complete table with a border width of 10 pixels.