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

Use of Linux date command

1. Command Introduction The date command is used ...

HTML Form Tag Tutorial (4):

Suppose now you want to add an item like this to ...

Detailed explanation of identifying files with the same content on Linux

Preface Sometimes file copies amount to a huge wa...

Practice of implementing custom search bar and clearing search events in avue

Table of contents 1. Customize the search bar con...

Dockerfile text file usage example analysis

Dockerfile is a text file used to build an image....

Detailed explanation of several ways to install CMake on Ubuntu

apt install CMake sudo apt install cmake This met...

How to use the realip module in Nginx basic learning

Preface There are two types of nginx modules, off...

Analysis of the difference between HTML relative path and absolute path

HTML beginners often encounter the problem of how ...

JavaScript array deduplication solution

Table of contents Method 1: set: It is not a data...

Vite+Electron to quickly build VUE3 desktop applications

Table of contents 1. Introduction 2. Create a Vit...

Summary of the characteristics of SQL mode in MySQL

Preface The SQL mode affects the SQL syntax that ...

How to use HTML form with multiple examples

Nine simple examples analyze the use of HTML form...

Commonly used HTML format tags_Powernode Java Academy

1. Title HTML defines six <h> tags: <h1&...