HTML table markup tutorial (2): table border attributes BORDER

HTML table markup tutorial (2): table border attributes BORDER

By default, the border of the table is 0, and we can set the border line for the table.
Basic syntax
<TABLE BORDER=VALUE>
Syntax explanation <br />The BORDER attribute is used to define the width of the border line in pixels.
File example: 10-2.htm
Set the border line width.
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 creation 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 creation 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>
File description <br />Lines 11 to 24 are a complete table with a table border of 1 pixel, and lines 25 to 38 are the second complete table with a border width of 10 pixels.

<<:  How to get the size of a Linux system directory using the du command

>>:  View the command to modify the MySQL table structure

Recommend

How to use vue filter

Table of contents Overview Defining filters Use o...

Detailed example of database operation object model in Spring jdbc

Detailed example of database operation object mod...

CSS3 uses the transition property to achieve transition effects

Detailed description of properties The purpose of...

How to implement remote connection for Redis under Linux

After installing Redis on Linux, use Java to conn...

Docker deployment and installation steps for Jenkins

First, we need a server with Docker installed. (I...

Example of implementing element table row and column dragging

The element ui table does not have a built-in dra...

Combining XML and CSS styles

student.xml <?xml version="1.0" enco...

A brief talk about MySQL semi-synchronous replication

Introduction MySQL achieves high availability of ...

Create a screen recording function with JS

OBS studio is cool, but JavaScript is cooler. Now...

Let's talk about bitwise operations in React source code in detail

Table of contents Preface Several common bit oper...

DOM operation table example (DOM creates table)

1. Create a table using HTML tags: Copy code The ...

A brief discussion on the $notify points of element

My original intention was to encapsulate the $not...

Do you know how to use Vue to take screenshots of web pages?

Table of contents 1. Install html2Canvas 2. Intro...

Mysql online recovery of undo table space actual combat record

1 Mysql5.6 1.1 Related parameters MySQL 5.6 adds ...